Screen Pane — Controls View
The Controls view of the Screen pane contains a list of all Canvas controls on your screen or object grouped by Type and displaying a subset of shared properties. You can edit several of these properties on this view and the changes will be reflected in the Properties pane. You can also select multiple controls in the Controls view and edit common properties at the same time.
The Controls view includes the following common properties:
| Property | Description |
|---|---|
|
Name |
The Name property specifies the unique identifier for this control. Valid characters are A-Z, 0-9, and underscore (_). Special characters and spaces are not permitted. Names cannot start with a number; an underscore will be prefixed if the control name starts with a number. The default value is the object name and the numeric instance. The control's Name is also displayed on the Controls view of the Screen pane. The Name property is read-only, but can be edited in the Properties pane. |
|
Type |
The read-only Type property displays the type for the control: Button, Chart, CygNet Grid, Edit Box, Object Container, Search Box, Tag Chooser, etc. … The control's Type is also displayed on the Controls view of the Screen pane. |
|
Style |
Styles are created in two ways:
Tip: You can also change a control's Style on the Controls view of the Screen pane. |
|
Height |
The Height property specifies the height of the control (or screen). Tip: You can also change the height of a control using the Settings pane (click on the |
|
Width |
The Width property specifies the width of the control (or screen). Tip: You can also change the width of a control using the Settings pane (click on the |
|
Z Index |
The Z index property is used to determine the order in which controls are layered on top of each other. Controls with higher values will draw on top of those with lower values. The newest control added to a screen will always have the highest value and will be the top layer. Two or more controls can be on the same index (layer). Tip: You can also change the Z index of a control using the Settings pane (click on the |
|
Layer |
Tip: You can also edit a control's Layer on the Controls view of the Screen pane. Note: Layer visibility can be controlled at runtime via the AddLayer, HideLayer, SetLayerVisibility, and ShowLayer methods on the Screen object. |
|
Is Visible |
Tip: You can also change a control's Visible setting on the Controls view of the Screen pane. |
|
In Script |
Tip: You can also change the Include in Script setting on the Controls view of the Screen pane. |
Grouping, Sorting, and Filtering Controls
The list of controls can be grouped, sorted, and/or filtered via the following methods:
|
Group |
Drag any column header to the area above the column headers to group rows by that column. You can group by any number of columns.
|
||
|
Sort |
Click any column header to sort that column in ascending or descending order. |
||
|
Filter |
Click |
The Style property defines the style sheet applied to an object on a screen. A style sheet consists of a predetermined list of properties and property values configured for a particular control type.
The Include in script check box indicates that the control will appear in the objects collection of the screen (if scripting is enabled). To optimize performance, best practice dictates that you only include the controls you need to manipulate via script. Other controls should be excluded. When you add an event to a control, it will be automatically added to script and the Include in script property (and the In Script check box on the Controls view) will be set to True.
