[Lazarus] How to make TBitButton set the ModalResult properly and close the form?
Bart
bartjunk64 at gmail.com
Sat Feb 11 23:24:31 CET 2023
On Sat, Feb 11, 2023 at 9:26 PM gabor via lazarus
<lazarus at lists.lazarus-ide.org> wrote:
> Have you set the TBitButton.ModalResult property or TBitButton.Kind
> property appropriately?
This would normally also set ModalResult to mrOk (Kind := bkOK) or
mrCancle (Kind := bkCancel).
Setting the modalresult to those values should be enough (no OnClick
needed) to close the modal form.
It definitively does so for me.
--
Bart
More information about the lazarus
mailing list