On 4/22/12, patspiper <[email protected]> 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 -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
