Common properties/types used with 2D controls
Anchors
An anchor allows a control to be ‘Anchored’ to a specific border of the window the control is placed in.
The Anchor control is available in the Layout property section on all controls that can be placed on the window and appears as below;
Each of the four vertical bars on the border can be selected to lock the control position relative to that border. In the example above this control is anchored relative to the top and left window border. When the window it contains is resized this control will always be anchored to these borders.
In the following example this Anchor setup may be used for a control placed on the Right hand side of the window such that resizing the window always shows this control at the same position relative to the top and right window border.
To have a control (eg. 3D view) stretching to fill the window, select opposite anchors. When the window is resized the control will be stretched.
Alias
All toolbox controls can have an Alias assigned. An Alias allows an alternative name to be assigned to components so that they can be linked to actions through expressions.
An alias is free form text that can include spaces and does not need to be unique.
Refer to the worked example in Templates for how an Alias is referenced in an expression.