DCGET ... VALID with DC_ReadGuiEvent(DCGUI_EXIT_ABORT)

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
Tom
Posts: 1234
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

DCGET ... VALID with DC_ReadGuiEvent(DCGUI_EXIT_ABORT)

#1 Post by Tom »

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)?
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: DCGET ... VALID with DC_ReadGuiEvent(DCGUI_EXIT_ABORT)

#2 Post by skiman »

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.
Best regards,

Chris.
www.aboservice.be

User avatar
Tom
Posts: 1234
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: DCGET ... VALID with DC_ReadGuiEvent(DCGUI_EXIT_ABORT)

#3 Post by Tom »

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

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCGET ... VALID with DC_ReadGuiEvent(DCGUI_EXIT_ABORT)

#4 Post by rdonnay »

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.

Post Reply