[Lazarus] Inconsistent results from MessageDlg()

Bart bartjunk64 at gmail.com
Sun Apr 22 15:06:10 CEST 2012


On 4/22/12, patspiper <patspiper at gmail.com> wrote:
> But I have a slightly different suggestion:

> 2- Escape key should first check if any button has Cancel=true, and use
> that button's modal result. Otherwise, mrCancel is in order as the user
> is running away from answering the dialog.

AFAIK, no Button has Escape = True (maybe except for mbCancel) in
TPromptDialog.CreateMessageDialog.


> 3- [x] should either return mrCancel, or mimic the Escape key. The
> latter is the more logical choice, as the programmer has intentionally
> defined the action (by setting a button's Cancel to true) if the user
> wants to run away.

Not the case, as stated above.
User (as in application programmer) has no influence over this for MessageDlg.

Bart




More information about the Lazarus mailing list