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
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus