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)?
DCGET ... VALID with DC_ReadGuiEvent(DCGUI_EXIT_ABORT)
DCGET ... VALID with DC_ReadGuiEvent(DCGUI_EXIT_ABORT)
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Re: DCGET ... VALID with DC_ReadGuiEvent(DCGUI_EXIT_ABORT)
Hi Tom,
I'm a bit confused. You have to add CARGO 'CANCEL' to your cancel buttons. But I'm so surprised you don't know this, that I'm wondering if I did understood your question well.
I'm a bit confused. You have to add CARGO 'CANCEL' to your cancel buttons. But I'm so surprised you don't know this, that I'm wondering if I did understood your question well.
Re: DCGET ... VALID with DC_ReadGuiEvent(DCGUI_EXIT_ABORT)
Hi, Chris.

Right. This is it! Thanks!You have to add CARGO 'CANCEL' to your cancel buttons.
Seems like I simply missed this. Ask me anything about eXpress++. Anything else.But I'm so surprised you don't know this, that I'm wondering if I did understood your question well.

Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Re: DCGET ... VALID with DC_ReadGuiEvent(DCGUI_EXIT_ABORT)
I think that it would be a good idea to add that as a default.
The eXpress train is coming - and it has more cars.