July 13, 2024, 07:22:53 PM

News:

IWBasic runs in Windows 11!


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