[Lazarus] Form emulated Showmodal

Ondrej Pokorny lazarus at kluug.net
Thu Apr 20 17:53:24 CEST 2017


On 20.04.2017 17:46, Alexey via Lazarus wrote:
> For CudaText i need my emulation of ShowModal.
>
> It must return w/o waiting form to close (like show). But form must 
> show like modal (all others must disable, and on closing -last 
> disabled form must enable). Smth exists already?

Not possible, AFAIK. Maybe with some hacks like Screen.DisableForms and 
.EnableForms. Do it with some kind of event (OnShow, OnIdle, ...). Or 
execute your code in a thread.

> What is list of forms in LCL. How to get last form.

Use Screen.Forms - it is sorted by Z-Order.

Ondrej



More information about the Lazarus mailing list