[Lazarus] TBitBtn with Kid=bkClose and ModalResult

Bart bartjunk64 at gmail.com
Mon Apr 23 11:50:54 CEST 2012


On 4/22/12, Bart <bartjunk64 at gmail.com> wrote:

> If you have a modern Delphi (as in higher then D3) could you please test
> this.
> Put a TBitBtn on a form.
> Set Kind = bkClose (in OI)
> Set Modalresult = mrClose (in OI)
> ShowModal this form
> Click on this TBitBtn
> What is the value Modalresult: mrCancel or mrClose?
>
> Bart
>

I had someone with Delphi XE test this for me. Delphi returns mrClose
in this case, so I think this is LCL bug.

Bart




More information about the Lazarus mailing list