On 4/23/12, Hans-Peter Diettrich <[email protected]> wrote:

> Here it returns mrCancel by default. When the ModalResult of the button
> is specified, this value is returned. On close with "X" the result is
> always mrCancel.
>
> Not worth to mimic this inconsistent behaviour in the LCL, IMO.
> Older Delphi code also will be fooled when mrClose is returned, which
> has been introduced only after D7.

Not sure what your last statement actually means:
a) LCL should return mrClose if TBitBtn.Modalresult = mrClose, even if
TBitBtn.Kind = bkClose
b) LCL should not return mrClose, since D7 (and earlier) does not support that.

?

Bart

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to