[Lazarus] How to make TBitButton set the ModalResult properly and close the form?
Salvatore Coppola
coppolastudio at gmail.com
Sun Feb 12 10:48:23 CET 2023
Did you call the form with Form2.ShowModal?
Ottieni BlueMail per Android
Il giorno 11 Feb 2023, 23:26, alle ore 23:26, Bart via lazarus <lazarus at lists.lazarus-ide.org> ha scritto:
>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
>--
>_______________________________________________
>lazarus mailing list
>lazarus at lists.lazarus-ide.org
>https://lists.lazarus-ide.org/listinfo/lazarus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20230212/0a1ce8b8/attachment-0001.htm>
More information about the lazarus
mailing list