Search Box Properties
The Search Box supports the following properties, which are available via the Properties pane and the Canvas script editor. Click next to any property name in the Properties pane to see a short description for the selected property.
See Accessing Screen Objects for more information about how to view control objects in script in the Canvas application.
Categorizing, Sorting, and Finding Properties
You can click
(Categorize), click
(Alphabetical within Category) or click
(Search) within the properties using the features located immediately above the properties list. The search box is useful to help locate a property when an object contains many properties. For clarity, when you enter a search term, items matching your entry string remain displayed and non-matching items are temporarily hidden. Clear the search box to display the full properties list again.
You can expand and collapse each property category by clicking
or
next to the group name or simply clicking anywhere in the category heading.
Search Box Properties
The following tables describe the property names visible in the Properties pane user interface (UI) and the corresponding script property name.
|
| UI Property | Script Property | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Name Type Style | ||||||||||
|
ControlName |
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 allowed. 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. |
|||||||||
|
ControlType |
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. |
|||||||||
|
|
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.
Styles are created in two ways:
Tip: |
|||||||||
| Location |
||||||||||
|
Height |
The Height property specifies the height of the control (or screen). Tip: |
|||||||||
|
HorizontalResizeMode |
The Horizontal resize mode property specifies whether and how the control dynamically moves or resizes horizontally when the screen is resized in run mode. Options include:
The default value is None. |
|||||||||
|
Layer |
The Layer property specifies the name of the layer to which this object is assigned. Layers can be used to show, hide, and edit multiple controls on one layer without affecting controls on another layer.
Tip:
Note: |
|||||||||
|
IsLocked |
The Lock property indicates whether the control is locked to the current position. A locked control cannot be moved via click and drag, or nudged with the arrow keys, or resized. Tip: |
|||||||||
|
VerticalResizeMode |
The Vertical resize mode property specifies whether and how the control dynamically moves or resizes vertically when the screen is resized in run mode. Options include:
The default value is None. |
|||||||||
|
IsVisible |
The Visible check box indicates whether the control is visible in run mode. Tip: |
|||||||||
|
Width |
The Width property specifies the width of the control (or screen). Tip: |
|||||||||
|
X |
The X property specifies the location of the control along the horizontal axis. Use the up, down, left, and right arrow keys to nudge a control by 1 pixel. Arrow moves a control by 1 pixel. Ctrl+Arrow moves a control by 10 pixels. Ctrl+Shift+Arrow moves a control by 100 pixels. Tip: |
|||||||||
|
Y |
The Y property specifies the location of the control along the vertical axis. Use the up, down, left, and right arrow keys to nudge a control by 1 pixel. Arrow moves a control by 1 pixel. Ctrl+Arrow moves a control by 10 pixels. Ctrl+Shift+Arrow moves a control by 100 pixels. Tip: |
|||||||||
|
ZIndex |
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: |
|||||||||
| Script |
||||||||||
|
|
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. Tip: |
|||||||||
| Search |
||||||||||
|
IsEnabled |
The Enabled check box indicates whether the control is enabled. The default value is True. When set to False, the control is visible in run mode, but grayed out and disabled from use. |
|||||||||
|
FacilityFilter |
Use the Facility filter property to limit the data presented in the control to any CygNet facility attribute set up for your CygNet installation. A search will be executed against the facilities that are described by this filter. Click |
|||||||||
|
SearchBoxResultPrimary |
The Facility attribute: Primary property specifies the facility attribute that will be displayed as text in the left position of a search result. Click |
|||||||||
|
SearchBoxResultSecondary |
The Facility attribute: Secondary property specifies the facility attribute that will be displayed as text in the right position of a search result. Click |
|||||||||
|
PropertiesToSearch |
Use the Properties to Search property to select the facility properties (attributes) that will be searched in the search box. Click |
|||||||||
|
SearchCustom CustomSearch |
The Search custom check box indicates whether a custom search will be performed. This property invokes the CustomSearch script property, a delegate that references a custom search method, when a user searches for a string. Example
See Scripting Custom Searches for more information about this property. |
|||||||||
|
SearchFacilities |
The Search facilities check box indicates whether to search for facilities based on facility attributes, filter settings, and SiteService. The default value is True. This property works in conjunction with the Facility filter, Properties to search, and SiteService properties. |
|||||||||
|
SelectionAction |
The Selected action property specifies the action to take when a result is selected. Options include:
The default value is FacilitySender. |
|||||||||
|
SiteServices Search.SiteServices.DisplayString Search.SiteServices.DomainSiteService Search.SiteServices.DomainSiteService.DomainId Search.SiteServices.DomainSiteService.Service Search.SiteServices.DomainSiteService.Site Search.SiteServices.DomainSiteServices Search.SiteServices.DomainSiteServices.Capacity Search.SiteServices.DomainSiteServices.Count Search.SiteServices.IsBroadcastSource Search.SiteServices.IsSelfSourced Search.SiteServices.SiteService Search.SiteServices.SiteServices Search.SiteServices.SiteServices.Capacity Search.SiteServices.SiteServices.Count Search.SiteServices.Source |
The SiteServices property specifies the current value or facility service(s) to search. Resolution will be against all facilities in the provided service's associated facility service. Options include:
|
|||||||||
|
UseGrayscaleIcons |
The Use grayscale icons check box indicates whether to display grayscale versions of the default themed icons. Facilities are designated with configurable icons:
Grayscale icons are available for use with the dark or light color theme. See themes for more information. |
|||||||||
| Generic |
||||||||||
|
String |
The String property specifies a generic string property that can be used when scripting this control. Type a string and reference it in your script as necessary. |
|||||||||
|
YesNo |
The Yes/No property specifies a generic Boolean yes/no property that can be used when scripting this control. Click the check box to enable the property and reference it in your script as necessary. |
|||||||||
