[Lazarus] Cannot close Windows 10 application with a bkClose TBitBtn button...

Bart bartjunk64 at gmail.com
Mon Nov 16 18:21:30 CET 2020


On Mon, Nov 16, 2020 at 1:04 PM Bart <bartjunk64 at gmail.com> wrote:

> IIRC then having a button with a ModalResult on the application's main
> form in Delphi does not close that form.

I just tested (Delphi and Lazarus): a TBitButton with Lind = bkClose
on the MainForm indeed closes the application.
Furthermore, the OnClick event handler is NOT executed in this case.
This is Delphi compatible (at least compatible with Delphi 7)

-- 
Bart


More information about the lazarus mailing list