[Lazarus] Inconsistent results from MessageDlg()

patspiper patspiper at gmail.com
Sat Apr 28 17:35:59 CEST 2012


On 28/04/12 13:37, Bart wrote:
> Here's the alternative implementation: Escape will always return
> mrCancel, both LCL's own CreatemessageDialog and
> Widgetset.PromptUser().
>
> See attached file: msgdlg.alternative.diff
> (Diff's for the first solution are in the bugtracker)
IMHO, the alternative implementation is very logical as:
- Both types of dialogs are consistent
- The programmer doesn't have to refer to documentation to find out what 
the Escape key does for every combination of buttons, and its effect on 
the dialog result

In any case, good work Bart!

Stephano




More information about the Lazarus mailing list