Floating (child window)
Child window with z>0, which "floats in front" of its parent.
A floating window (sometimes also called "popup") is clipped only by the screen boundaries, rather than by its parent window.
A window is defined as floating during construction, by specifying a positive z coordinate in the MWindow::MWindow constructor. The value of the z coordinate (and thus the floating state) cannot be changed after the window is created (see MWindow::setRect). Specifying a z value of 0 or Auto during construction sets the default state for that class: floating for MInfoLabel, MMenuBox, MDialogBox, MFileDialogBox, and MMainFrame, and embedded for all the rest.
See also Embedded.
- MMainFrame is a child of the screen, so it can be defined as either floating or embedded - there is no visual difference. However, it might make a difference in the future versions. At this time, the mainframe is defined as a floating window
- MScreen or any closed window is a child of itself, so its floating state is undefined (it cannot be "in front of" or "behind" itself), and its z coordinate is always 0
Let us know
Please Contact us to report any errors on this page, or to suggest any improvements.