[Lazarus] Inconsistent results from MessageDlg()

zeljko zeljko at holobit.net
Sun Apr 29 12:54:47 CEST 2012


On Sunday 29 of April 2012 12:25:25 Bart wrote:
> On 4/29/12, zeljko <zeljko at holobit.net> wrote:
> > hm...just fixed qt part for EscapeButton,
> 
> Sorry, I am unable to test all widgetsets.
> 
> > but when testing QuestionDlg()
> > seem
> > that Cancel = True maps one button as cancel result (Escape or [x]) under
> > gtk2
> > and qt eg. QuestionDlg('Confirm','Please confirm me',
> > [mrYes,'Yes',mrAbort,'Abort'],0) returns mrAbort when escape key or [x]
> > is clicked.
> 
> I didn't look into QuestionDlg.
> 
> (I never used that)
> 
> > If we are following behaviour of MessageDlg, QuestionDlg should return
> > mrCancel in any case when Escape key is pressed or [x] is clicked.
> > Anyone can test what QuestionDlg() is doint under Delphi XE ?
> 
> With [mrYes,'Yes',mrAbort,'Abort'] it should not respond to Escape if
> it is our own built form (like MessageDlg does now), it should return
> mrCancel on [X]-bordericon.
> 
> Do we have specific (native) widgetset implementations for
> QuestionDlg, or is it a LCL built form?

LCL decides about Cancel button and sends to WS AskUser() , whatever that 
means.

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


More information about the Lazarus mailing list