On Mon, Nov 16, 2020 at 1:04 PM Bart <bartjun...@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 -- _______________________________________________ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus