Here's my full list of modalities: - Modeless - a modeless window supports interaction when it has the focus but does not grab or block interaction with any other window in its own or other applications.
- Window Modal - has no effect on other windows in other applications or in this application. Used by pop up menus or other interactive popups (e.g., completion). Normally this is handled automatically by the GUI library's pop-up API.
- Modal - has no effect on other windows in other applications or in this application's windows in the same tree: here 'tree' is the top-level window and any child windows the modal dialog has been invoked on. So, for example, if you have an application and use it to open two top-level windows (e.g., two document windows), and use a modal dialog in one of those windows (e.g., a Find dialog), the modal restriction will only apply to the document window (or child) it is invoked on, and _not_ apply to the other document window (or its children). - Application Modal - has no effect on other windows in other applications, but applies to _all_ this application's windows, even in the case of multiple top-level windows. Rarely used.
- System Modal - affects _all_ windows in _all_ applications; normally only used for the system login dialog. Dangerous to use this level of modality because a bug could make the entire system unusable.
Modeless windows are often convenient for users, but can be harder to program since state they rely on may be changed outside of them. Conversely modal windows can be inconvenient for users -- they don't allow interaction with other windows (in the same tree) -- but are much easier to program because state can't change from under them.
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/341ef720-963b-4103-8fbd-b3390350e4b3n%40googlegroups.com.
[ Direct Link to Message ] |