A library for creating forms / GUI / dialogs from scripts?

Right now, when I need a special dialog, no matter how simple it is, I use the Delphi form designer to create a new dialog form. Then the form completes with the easy-to-use ShowMessage () function.

In some situations, it would be easier if forms could be created at runtime from a script. The script will describe in detail all the components of the form and their properties, similar to Delphi.DFM files.

Creating graphical interfaces from scripts can be useful in other situations. For example, a widget GUI can be embedded in an existing application window. Or the GUI script can be modified at runtime to create GUI options.

I could create something to do it myself, but I believe that other people have already solved this problem. However, I can not find anything using Google. Is there anything currently offering such functionality? (Free or Not) Or does it already exist in Delphi?

+6
source share
3 answers

You can try the XI Library (commercial): http://xilib.com/

I never used it, it just sits on my bookmarks, but it looks like it matches the bill. This is not a scripting engine, but rather a way to define dialog boxes via XML. There is an example of XML code right on the main page, just click "Show Example".

+1
source

Check out some of the solution scripts for Delphi. For example, TMS Scripting Studio, dwScript, RemObject, FastScript, etc. I believe that some of them may use DFM for this purpose.

+4
source

http://www.torry.net/pages.php?id=280 Delphin v.1.21, it can process DFM files, maybe you just want DFM code converter.

+2
source

Source: https://habr.com/ru/post/894342/