[Lazarus] Lazarus 1.6 and QuestionDLG
Jürgen Hestermann
juergen.hestermann at gmx.de
Sun Dec 20 12:52:12 CET 2015
Am 2015-12-20 um 08:06 schrieb Ondrej Pokorny:
> I just add that you had to care for mrCancel before as well (if default dialog was shown).
> It was returned when the dialog was closed with the system close button in the window caption. So the test code you sent isn't good for 1.4 either.
Before (with Lazarus 1.4) typing escape had the expected behaviour.
Now (with Lazarus 1.6) the same code does nothing on escape.
So something has changed.
> Now the behavior should be consequent:
> no 'iscancel' button defined: mrCancel is returned on ESC/close.
> 'iscancel' defined: its modal result is always returned on ESC/close.
As already written in my other mail there is no documentation of 'iscancel' on
http://wiki.freepascal.org/Dialog_Examples#QuestionDlg
and here
http://lazarus-ccr.sourceforge.net/docs/lcl/dialogs/questiondlg.html
neither 'isdefault' nor 'iscancel' is mentioned.
I simply did not know about 'iscancel' at all.
How should I, if it's undocumented?
More information about the Lazarus
mailing list