To work with dialogs, there is an internal class ts_dialog. To create a dialog, we create a ts_dialog class object with the object statement with the "create" directive.

object("create", "ts_dialog", iDialogDescr);

Removing a dialog from memory is done by the command

object("delete", iDialogDescr);

It is not necessary to delete non-modal dialogs, because they run after the main() function has completed on the screen. They are deleted automatically when the main window is closed. If you create and run several modeless dialogs at the same time, then one of them must be made the main one with the "set_as_main_panel" command.