Hallo,
how can we get a sort of "OnClose" event for TTIWAdvMessageDialog?
(ESC key, Close button and "X")
Can this be done with some JavaScript code?
Please have an example.
Kind regards
Hi,
Unfortunately there is currently no event associated with using the ESC key or "X" to close the dialog.
However, this is a good suggestion and we'll consider adding this feature in a future version.
However, this is a good suggestion and we'll consider adding this feature in a future version.
As a workaround you can disable the use of the ESC key and hide the "X" by setting WantsEscape to false and ShowCloseButton to false respectively.
You can then add a Close button by checking the cbClose value in the CommonButtons property.
Clicking this button will trigger the OnAsyncButtonClick/OnButtonClick event with value 4 for the ButtonIndex parameter.
You can then add a Close button by checking the cbClose value in the CommonButtons property.
Clicking this button will trigger the OnAsyncButtonClick/OnButtonClick event with value 4 for the ButtonIndex parameter.