Page 1 of 1

Answer No on Esc in dialogs w/o Cancel button

Posted: 2010-01-27, 12:25 UTC
by MVV
Some dialogs have no Cancel button and we can't close them using Escape. Example - remove buttonbar button question. It is much simpler to answer No using Escape key than using mouse or Tab/Right and Enter.

Is is possible to add this simple thing - if user presses Esc in dialog w/o Cancel button, TC closes dialog and with return value corresponding to present cancelling button in this dialog - No, Ignore, Abort (which is present)?

Posted: 2010-01-28, 17:16 UTC
by ghisler(Author)
This is a limitation of the MessageBox function. That's why I sometimes have 3 buttons Yes, No, Cancel, although only Yes and No make sense.

Posted: 2010-02-02, 18:06 UTC
by MVV
ghisler(Author) wrote:This is a limitation of the MessageBox function. That's why I sometimes have 3 buttons Yes, No, Cancel, although only Yes and No make sense.
Maybe you may change buttons from Yes-No to OK-Cancel in button bar deletion confirm dialog (or maybe something another)?