[Lazarus] Inconsistent results from MessageDlg()

zeljko zeljko at holobit.net
Sun Apr 22 13:09:01 CEST 2012


On Sunday 22 of April 2012 12:28:43 Bart wrote:
> Hi all,
> 
> MessageDlg eventually calls WidgetSet.PromptUser()
> This in return either calls and sets up a widgetset specific function
> (like TaskDialogIndirect on Windows Vista/Win7) or if such an
> implementations does not exist it calls
> TPromptDialog.CreateMessageDialog() and the LCL will build it's own
> MessageDialog form with appropriate buttons etc.
> 
> I see 3  problems (see http://bugs.freepascal.org/view.php?id=21801 ).
> 
> 1.


> How to handle clicking on X-border-icon?

afair, qt and gtk2 have default result for that and escape key (you can set on 
dialog what is the value of default result for [X] and escape), result should 
be mrCancel in any case.

zeljko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120422/0f73e8aa/attachment-0003.html>


More information about the Lazarus mailing list