May 09, 2024, 03:34:29 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Cancel button?

Started by carpman2007, January 13, 2007, 01:46:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

carpman2007

I know that @CTLBTNDEFAULT is the flag used to specify the default button on a dialog...

Is there a flag that can be used to designate a *cancel* button as well?

Ionic Wind Support Team

Use a control ID of 2 for a CANCEL button and a control ID of 1 for an OK button.  In your handler respond to ID 2 by closing the dialog. That way the escape key will work as well.

Paul.
Ionic Wind Support Team

carpman2007