[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

My Modal window tip on the wiki


I just added the following info to the Window.ShowModal page...

Can anyone confirm it sounds correct or correct me accordingly.
maybe you can offer some hard facts on the matter Benoit? (this stems from
the reported bug on the bugtracker #3185)

Many thanks
BruceS

Quote:
A modal window (or modal) is an overlay that appears on top of an
application's main content. It creates a "mode" that forces the user to
interact with it before they can return to the main interface, effectively
locking out the background until the window is dismissed.
---

Events in your main application or other open windows will not work as
expected when a modal window is open.
Do not try to control the main application or other open windows from a
modal window and do not try to make a modal window open or close other
windows as you may find unexpected problems.

A typical example of modal window usage is a Message
<https://gambaswiki.org/wiki/comp/gb.qt4/message>() box.
While the Message <https://gambaswiki.org/wiki/comp/gb.qt4/message>()
window is displayed the main application is frozen until the message is
closed.

It is not usually possible and not advised to try to control anything
outside of a singular modal window.