DCGET ... VALID with DC_ReadGuiEvent(DCGUI_EXIT_ABORT)
Posted: Fri Oct 11, 2013 1:47 am
If GETs have VALID-Codeblocks, they are not evaluated if <ESC> is pressed or the dialog is closed using the 'X'-button of the window. Unfortunately, nearly all my dialogs have buttons created with the BUTTONS-clause of DCGET OPTIONS, one "OK"-button and one "ABORT"-button. The "ABORT"-button simply fires "DC_ReadGuiEvent(DCGUI_EXIT_ABORT,GetList)" (in most of the cases). This leads to an evaluation of the "VALID"-codeblock, if a GET has focus in this situation. I know the reason for this - the GET loses focus, and the buttons are normal buttons at least, so evaluating "VALID" is correct.
Any ideas (besides changing all VALID-codeblocks)?
Any ideas (besides changing all VALID-codeblocks)?