Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-04

Form emulated Showmodal

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alexey

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? What is list of forms in LCL. How to get last form.

Regards, Alexey

Reply by email

Ondrej Pokorny
to Alexey
Alexey wrote 5 lines
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

Reply by email