OK Dialogue box - Bug or normal?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • kpsmith
    Forum Member
    • Jul 2000
    • 332

    OK Dialogue box - Bug or normal?

    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.
  • Lorne
    Indigo Rose Staff Member
    • Feb 2001
    • 2729

    #2
    Re: OK Dialogue box - Bug or normal?

    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.
    --[[ Indigo Rose Software Developer ]]

    Comment

    • Corey
      Indigo Rose Staff Alumni
      • Aug 2002
      • 9741

      #3
      Re: OK Dialogue box - Bug or normal?

      Just set your dialog box to "OK/Cancel" if you need a cancel option...

      Corey Milner
      Creative Director, Indigo Rose Software

      Comment

      Working...
      X