WINDOW
System window that can be used as a container for other widgets. The window's parent is the window of the current widget when the WINDOW elemetn is instantiated.
Inherited Attributes
The WINDOW element inherits most of the Attributes Common to Widgets for its content widget (the window has a root widget element that contains all children widgets).
However, the following widget attributes are used for the window itself, not for its content widget: display, visible, opacity, h_position, v_position, enabled. All other attributes are used by the content widget, which identifier for exposure is the identifier of the window with the .content suffix.
Example: window is is myWindow, the attributes exposed by the widget are myWindow.content.text_color, myWindow.content.width, myWindow.content.height etc.
Also, the mouse_sensitive attribute is ignored and always set to true.
It should be noted that the window's h_position and v_position are absolute to the system's "virtual screen" rather than relative to its parent window. Also the width and height attributes refer to the container widget, not the window's frame size.
By default, if the position attributes are not set, the window will be centered upon first open (when the visible attribute is set to true).
Note: A WINDOW element resets the text properties to default (default system font and color), regardless of its parent widget settings.
Specific Attributes
In addition to the inherited attributes such as h_position and v_position, a WINDOW has the following properties:
Attributes brief detailed show all inherited
Window
A simple example of creating a WINDOW and displaying it on demand.
- <!-- create a window that will be displayed on demand -->
- <WINDOW id="my_window" min_width="400" min_height="200" title="My new window" visible="false">
- <TEXT value="Hello there!" />
- </WINDOW>
- <!-- controls of window parameters -->
- <PARAM_TEXT_CONTROL param_id="my_window.visible" content="window.visible: {value}" />
- <PARAM_TEXT_CONTROL param_id="my_window.focus" content="window.focus: {value}" />
- <TEXT_FIELD string_id="my_window.title" />

Comments
Please, authorize to view and post comments.