IonicWind Software

IWBasic => GUI Central => Topic started by: carpman2007 on January 13, 2007, 01:46:38 PM

Title: Cancel button?
Post by: carpman2007 on January 13, 2007, 01:46:38 PM
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?
Title: Re: Cancel button?
Post by: Ionic Wind Support Team on January 13, 2007, 02:00:22 PM
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.
Title: Re: Cancel button?
Post by: carpman2007 on January 13, 2007, 06:47:16 PM
Got it!