eventreaction
Sets the dialog's reaction to events, such as resizing, etc.
In the text of the program, you can create functions with a specific name, which includes the name of the event.
And bind elements to this event. So this function will be executed.
Events available for dialogs:
"Event_PanelCloseRequested" - called before closing the dialog box.
Associating a dialog window with a function - response to an event is performed by the "eventreaction" command.
Handling:
ts_dialog(iDialogDescr, "eventreaction", string eventfunctionname);
Here:
eventfunctionname - the name of the function - reaction to the event.
If the function returns -1, then the panel is not closed. If any other value - then the panel is closed.