Screen window
The screen window shows another project screen inside the current one, like the Screen window in WinCC: a common header with area selection, a parameter panel next to the diagram, a “screen in a screen” on an overview monitor. The screen in the window is live: values, animations and events work as usual. “Border” draws the window’s frame.
A script reaches elements of the screen inside the window through the window: Children("Name") returns an element by name, Children() returns all of them. Screen.Items searches only the open screens themselves and their groups.
Properties
Section titled “Properties”Besides the properties of every element — name, position, size, tooltip, rotation, transparency and the operate right:
| Property | Values | Default | Description |
|---|---|---|---|
Screen |
screen name | Screen | |
Border |
true / false |
true |
Border |
From scripts
Section titled “From scripts”Item.Type = ScreenWindow. Any property is read and changed by name: Item.Width = 200. The common element members (Visible, Enabled, Value, Raise, Apply…) are described in Elements from scripts.
Events
Section titled “Events”Mouse, hover, focus and keyboard — as for any element (see Events and functions).
Examples
Section titled “Examples”Area selection — buttons change the screen in the window.
Screen.Items("Area").Screen = "PumpStation2";An element on the screen in the window.
var w = Screen.Items("Area");HMI.ShowMessage("The window shows \"" + w.Screen + "\", elements: " + w.Children().length);w.Children("Heading").Text = "Pump station 2 — maintenance";