View Full Version : OK Dialogue box - Bug or normal?

09-11-2002, 12:38 PM
I noticed when using a dialogue box with a single OK button the Close window control is active (the X in the corner). It is not active for any dialogue boxes that have multiple buttons.

Stranger than that is the variable that saves the result (%Result%) outputs "OK" as the variable value if you click the OK button or if you click the X close window control.

Seems to me the %Result% should be "OK" if you click OK or "" if you close the window. Maybe this is by design or windows standard but it makes no sense to me.

09-11-2002, 01:00 PM
1. That doesn't happen here; the OK button always has the focus.

2. Yes, that's by design, yep, that's Windows standard. Think of it this way: you can't cancel out of an OK message box. I mean, it isn't a choice...it's just a message box saying "guess what" and you go "OK." Closing the message box is exactly the same thing: "yeah, ok, whatever." There is no difference.

09-11-2002, 01:26 PM
Just set your dialog box to "OK/Cancel" if you need a cancel option...

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)