Detail Control Properties
The Detail control 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.
Detail Control Properties
The following table describes 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 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. |
|||||
|
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. |
|||||
|
|
Styles are created in two ways:
Tip: You can also change a control's Style on the Controls view of the Screen pane. |
|||||
Location
|
||||||
|
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 |
|||||
|
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 |
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. |
|||||
|
IsLocked |
Tip: You can also toggle the lock setting of a control using the Settings pane (click on the |
|||||
|
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 |
Tip: You can also change a control's Visible setting on the Controls view of the Screen pane. |
|||||
|
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 |
|||||
|
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: You can also change the location of the control using the Settings pane; click on the |
|||||
|
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: You can also change the location of the control using the Settings pane; click on the |
|||||
|
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: You can also change the Z index of a control using the Settings pane (click on the |
|||||
Script
|
||||||
|
Tip: You can also change the Include in Script setting on the Controls view of the Screen pane. |
||||||
Display
|
||||||
|
BottomInformationText |
The Bottom information text property specifies the text that will appear on the bottom information area on the control. The control can display a static text string, such as a label, legend, tooltip, or a dynamic text string based on point or facility attributes. Dynamic text is built using tokens, which can represent real-time CVS point properties, point configuration properties, and facility properties. In run mode, the tokens are replaced with the attribute's value. Click |
|||||
|
Text |
The Text property specifies the text that will appear on the face of the control. The item can display a static text string, such as a label, legend, tooltip, or a dynamic text string based on point or facility attributes. Dynamic text is built using tokens, which can represent real-time CVS point properties, point configuration properties, and facility properties. In run mode, the tokens are replaced with the attribute's value. Click |
|||||
|
TopInformationText |
The Top information text property specifies the text that will appear on the top information area on the control. The control can display a static text string, such as a label, legend, tooltip, or a dynamic text string based on point or facility attributes. Dynamic text is built using tokens, which can represent real-time CVS point properties, point configuration properties, and facility properties. In run mode, the tokens are replaced with the attribute's value. Click |
|||||
Detail
|
||||||
|
ColorConfiguration |
The Color configuration drop-down contains all options required to specify the color properties of the control. Click |
|||||
|
Background color |
ColorConfiguration.BackgroundSource ColorConfiguration.BackgroundSelfColor |
The Background color property specifies the color used for the background of the control. The color can be sourced from one of three options provided in the Source drop-down menu:
Options include:
For each color property select the Source and Color:
Note: You can override the default point state colors for this element by creating a custom color palette. See Configuring Color Palettes and Color palette for a screen or object for more information. |
||||
|
Text color |
ColorConfiguration.TextColorSource ColorConfiguration.TextSelfColor |
The Text color property specifies the color used for the text on the control or map visual. The color can be sourced from one of three options provided in the Source drop-down menu:
Options include:
For each color property select the Source and Color:
Note: You can override the default point state colors for this element by creating a custom color palette. See Configuring Color Palettes and Color palette for a screen or object for more information. |
||||
Font
|
||||||
|
FontSizeBottom |
The Font size (bottom) property specifies the font size of the bottom text on the control. Only applies if Font size mode is set to Fixed. |
|||||
|
FontSizeMain |
The Font size (main) property specifies the font size of the main text on the control. Only applies if Font size mode is set to Fixed. |
|||||
|
FontSizeTop |
The Font size (top) property specifies the font size of the top text on the control. Only applies if Font size mode is set to Fixed. |
|||||
|
FontSizeMode |
The Font size mode property specifies the method used to size the text on the control. Options include:
The default value is Auto. The default value for the Text Tool is Fixed. |
|||||
|
TextStyle |
The Text style property specifies the style to use for the text that appears on the control or map visual. Options include: Normal, Italic, or Oblique. The default value is Normal. |
|||||
|
TextWeight |
The Text weight property specifies the weight to use for the text that appears on the control or map visual. Options are: Normal or Bold. The default value is Normal. |
|||||
Tooltip
|
||||||
|
TooltipText |
|
|||||
|
TooltipEnabled TooltipDuration TooltipBetweenShowDelay TooltipInitialShowDelay |
|
|||||
|
TooltipMode |
The default value is Text. |
|||||
|
TooltipObjectPath TooltipObjectSource |
|
|||||
Value
|
||||||
|
CustomContextMenuItems |
The custom context menu options will appear at the bottom of the fixed context menu options, separated by a line. Each custom context menu item has a title and an event script ID; items can be designated as a separator; and custom context menus support nested menu items. Click |
|||||
|
Context menu items > Title |
|
|||||
|
Context menu items > Is separator |
|
|||||
|
Context menu items > Script event ID |
|
|||||
|
DateTimeFormat |
The Date and time format property specifies the format for a point's timestamp using any of the valid .NET standard or custom numeric format strings. The date and time format applies to any point's timestamp property. Use this property to override the Default date format, which is configured in the Application settings page of the Backstage view. The default date format is YYYY/MM/DD HH:MM:SS.fff, which corresponds to 2024/01/01 10:20:30.0001. All timestamps are local client time. If an invalid format is configured for the Date and time format, the control will automatically use the format configured for the Default date format saved in the global settings file, and configured in the Backstage view. Note: You can also use the Microsoft .NET Standard Date and Time Format Strings to define the text representation of a date and time value in Canvas. For example, "d" is the short date pattern and corresponds to 1/1/2024, "F" is the full date/time pattern and corresponds to Monday, January 1, 2024 1:45:30 PM. |
|||||
|
HideInvalidTag |
The Hide invalid tag check box indicates whether to hide the element (a control, button, image, or map visual item) if it resolves to an invalid or unknown tag. Note: Invalid point tags and relative facility resolution work in the following way for single-value controls: when a point tag is invalid or unknown, the tag can be hidden using the Hide invalid tag property. In this situation, a control with only facility-based tokens that has a valid relative facility resolution, but results in an invalid point tag, then the point tag will be treated as an invalid tag and displayed accordingly. There may be a scenario where you want to hide a control when using facility-based attributes and relative facilities. Say you have a templated screen with a Text Tool displaying a Gas Meter, but not all Wells have an associated Gas Meter. You could hide the control for a Well that does not have an associated Gas Meter, and by not specifying a UDC, you can always show (or hide) a facility resolution with facility-based attributes only. |
|||||
|
PointConfiguration |
The Point configuration property is used to configure the CygNet point associated with the control. Click |
|||||
|
Selection mode |
PointConfiguration.SelectionMode |
The Selection mode property is used to determine how the control will receive CygNet information from other controls or from itself. Two options are available; click the desired radio button:
Sending and receiving facility tagsSome controls on the same screen allow for the sending of facility information from one control to another.
ExampleAdd a control to a screen (e.g., a Tag Chooser or Grid) and configure it as a facility sender to send a facility to the screen. Add another control to the screen (e.g., a Text Tool or Donut) and configure it to receive the facility from the screen. In this scenario the Tag Chooser or Grid will send a facility to the screen and the screen will then send the facility to a Text Tool or the Donut. |
||||
|
Facility tag Point config > Facility
|
FacilityID FacilitySender FacilityTag
FacilityTag.FacilityId FacilityTag.Service FacilityTag.Site FacilityTag.SiteService FacilityTag.SiteService.Service FacilityTag.SiteService.Site IsRelativeFacilityResolutionEnabled PointConfiguration.Facility PointConfiguration.Facility.FacilityID PointConfiguration.Facility.FacilityID.IsBroadcastSourced PointConfiguration.Facility.FacilityID.IsOrderInType PointConfiguration.Facility.FacilityID.IsOrderInTypeAttributeConfigured PointConfiguration.Facility.FacilityID.IsRelative PointConfiguration.Facility.FacilityID.IsSelfSourced PointConfiguration.Facility.FacilityID.OrderInType PointConfiguration.Facility.FacilityID.RelativeFacilityLink PointConfiguration.Facility.FacilityID.ResolveRelativeFacility PointConfiguration.Facility.FacilityID.Source PointConfiguration.Facility.FacilityID.SourceFacilityID PointConfiguration.FacilityTag PointConfiguration.FacilityTag.FacilityId PointConfiguration.FacilityTag.Service PointConfiguration.FacilityTag.Site PointConfiguration.FacilityTag.SiteService PointConfiguration.FacilityTag.SiteService.Service PointConfiguration.FacilityTag.SiteService.Site PointConfiguration.SourceFacilityTag PointConfiguration.SourceFacilityTag.FacilityId PointConfiguration.SourceFacilityTag.Service PointConfiguration.SourceFacilityTag.Site PointConfiguration.SourceFacilityTag.SiteService PointConfiguration.SourceFacilityTag.SiteService.Service PointConfiguration.SourceFacilityTag.SiteService.Site |
The Facility tag or Facility property is where you specify the source of the facility for the control (or screen) to use. The source for the facility can be explicitly configured for this control or it can be received from another control on the same screen, or from the screen, or from another screen. Click
|
||||
|
SiteService |
PointConfiguration.SiteService PointConfiguration.SiteService.DisplayString PointConfiguration.SiteService.DomainSiteService PointConfiguration.SiteService.DomainSiteService.DomainId PointConfiguration.SiteService.DomainSiteService.Service PointConfiguration.SiteService.DomainSiteService.Site PointConfiguration.SiteService.DomainSiteService.SiteService PointConfiguration.SiteService.DomainSiteService.SiteService.Service PointConfiguration.SiteService.DomainSiteService.SiteService.Site PointConfiguration.SiteService.IsBroadcastSourced PointConfiguration.SiteService.IsSelfSourced PointConfiguration.SiteService.SiteService PointConfiguration.SiteService.SiteService.Service PointConfiguration.SiteService.SiteService.Site PointConfiguration.SiteService.Source SiteService SiteServiceSender |
The SiteService property is where you specify the source of the SiteService for the control (or screen) to use. The source for the SiteService can be explicitly configured for this control or it can be received from another control on the same screen, or from the screen, or from another screen. Click
|
||||
|
Point |
LongPointID PointConfiguration.LongPointID PointConfiguration.PointSelectionMode PointConfiguration.PointTag PointConfiguration.UDC Points
Points.Comparer Points.Count Points.Keys Points.Subscribe Points.Unsubscribe Points.Values PointTag UDC |
The Point property is used to determine how the CygNet point will be configured. Click the appropriate radio button to reveal the desired field.
|
||||
|
ShowContextMenu |
The Show context menu check box indicates whether a right-click context menu will be available or suppressed in run mode. The default context menu will allow alarm acknowledgment, access to point history and alarm history, point configuration, and facility configuration. Note: The CygNet Thin Web Client supports its own context menu in the web view. When activated the context menu appears on the right side of the page. From the CygNet TWC web view context menu you can view point values, acknowledge a point in alarm, view and edit alarm values, and add a selected point to an ad-hoc chart. See Using the Thin Web Client Context Menu. |
|||||
|
ValueFormat |
The Value format property specifies the format for the point's value using any of the valid .NET standard or custom numeric format strings. The value format applies to a point's Value, Primary Value, and Alternate Value properties. The default value format is #,##0.00, which corresponds to 123,456,789.12. Formats use # and 0, with a period (.) as the decimal separator and comma (,) as the thousands separator. Add additional zeros to show more decimal places. |
|||||
Sparkline
|
||||||
|
AutoRangeX |
|
|||||
|
AutoRangeY |
|
|||||
|
DateConfig |
The Date range configuration property is used to configure the range of dates to be trended in the chart or sparkline, whether to enable live data updates, the live update rate, the starting time for a trend, whether to use relative or absolute dates, and the actual date range. Click |
|||||
|
Enable live updates |
AutoUpdate |
The Enable live updates check box indicates whether this chart or sparkline will request new data at a specified interval allowing the chart to trend data at a real-time pace. When live updates are enabled and the next poll occurs, the series line will update to reflect the slope change, if any. The interval at which the trend moves forward is defined in the Update rate. If disabled, a trend is populated once with data from the Value History Service (VHS). You can disable live updates /enable live updates for any chart in run mode via an icon on the chart toolbar. See Live Update Changed for related event. |
||||
|
Update rate |
AutoUpdateRate |
The Update rate property specifies the number of milliseconds to wait before an auto-updated trend refreshes. The default rate is 200 milliseconds. |
||||
|
Earliest (span) |
AutoUpdateEarliestSpan |
The Earliest (span) property specifies the starting date for a trend; that is, the amount of time in the past from when to start the trend. Enter a number in the text box and select a time period from the drop-down menu. For example, 8 Hours ago or 2 Days ago. |
||||
|
Earliest (units) |
AutoUpdateEarliestUnit |
The Earliest (unit) property specifies the unit of time in the past from when to start the trend. After entering a number in the text box, select a time period from the drop-down menu. The options include: Seconds, Minutes, Hours, Days, and Years. For example, 60 Seconds ago or 2 Hours ago. The default value is Hours. |
||||
|
Use relative date |
UseRelativeTime |
The Use relative date check box indicates whether to use relative dates and time for the chart. Use the Begin/Start and End properties to specify the relative date ranges to use in the chart. If Use relative date is unchecked all dates and time will be absolute. Use the Begin/Start and End properties to specify the absolute date ranges to use in the chart. |
||||
|
Start (relative date) |
RelativeStart |
The Begin relative date or Relative start date or Start property specifies a wildcard string defining the amount of time by which to adjust the start date and time. The space-separated elements in this string must be of the form: "x-#", "x+#", or "x=#" where # is an integer and x is one of the following unit specifiers: y — Year, m — Month, d — Day, H — Hour, M — Minute, S — Second, and # is an integer. T wildcard is also supported and must be in the form: T, T+#, T-#, where T represent today at midnight, T-1 is yesterday at midnight, and T+1 is tomorrow at midnight, etc. Any integer can be used. For example, H-8 represents data from the 8 hours before the current hour, d+3 represents data 3 days after the current day, and d+2 H+1 M+30 represents data 2 days, 1 hour and 30 minutes after the current date and time. d-4 H=6 sets the relative start date and time to four days ago (d-4) at 6:00 a.m. (H=6). See Date and Time Wildcards for more information about adjusting relative time. |
||||
|
End (relative date) |
RelativeEnd |
The End relative date or Relative end date or End property specifies a wildcard string defining the amount of time by which to adjust end date and time. The space-separated elements in this string must be of the form: "x-#", "x+#", or "x=#" where # is an integer and x is one of the following unit specifiers: y — Year, m — Month, d — Day, H — Hour, M — Minute, S — Second, and # is an integer. T wildcard is also supported and must be in the form: T, T+#, T-#, where T represent today at midnight, T-1 is yesterday at midnight, and T+1 is tomorrow at midnight, etc. Any integer can be used. For example, H-8 represents data from the 8 hours before the current hour, d+3 represents data 3 days after the current day, and d+2 H+1 M+30 represents data 2 days, 1 hour and 30 minutes after the current date and time. d-4 H=6 sets the relative end date and time to four days ago (d-4) at 6:00 a.m. (H=6). See Date and Time Wildcards for more information about adjusting relative time. |
||||
|
Start (absolute date) |
DateStart DateStart.Date DateStart.Day DateStart.DayOfWeek DateStart.DayOfYear DateStart.Hour DateStart.Kind DateStart.Millisecond DateStart.Minute DateStart.Month DateStart.Second DateStart.Ticks DateStart.TimeOfDay DateStart.Year |
The Begin date or Start or Start date property specifies the start date and time for a control (or screen or chart or column) for an absolute date and time view window. The format is MM/DD/YYYY hh:mm:ss AM/PM. The default value is the system date and time at which the control was first added to the screen. Click |
||||
|
End (absolute date) |
DateEnd DateEnd.Date DateEnd.Day DateEnd.DayOfWeek DateEnd.DayOfYear DateEnd.Hour DateEnd.Kind DateEnd.Millisecond DateEnd.Minute DateEnd.Month DateEnd.Second DateEnd.Ticks DateEnd.TimeOfDay DateEnd.Year |
The End date or End property specifies the end date and time for a control (or screen or chart or column) for an absolute date and time view window. The format is MM/DD/YYYY hh:mm:ss AM/PM. The default value is the system date and time at which the control was first added to the screen. Click |
||||
|
MaximumYValue |
|
|||||
|
MinimumYValue |
|
|||||
|
ShowSparkline |
The Show sparkline indicates whether to show or hide a sparkline in the Detail control. By default the sparkline presents live data updates at a fixed interval trending data at a real-time pace. Use the other Sparkline (Detail) properties to set the line color, x- and y-axis ranges and min/max values, and date ranges, both relative and absolute. |
|||||
|
SparklineColor |
The Sparkline color (or Color) property specifies the color of the sparkline. Click Note: The default colors used for a Sparkline series are drawn from a set palette and are therefore not theme-specific. See themes for more information. |
|||||
Alarm Icon
|
||||||
|
IconConfiguration IconConfiguration.ColorSource IconConfiguration.Ranges IconConfiguration.Ranges.Count |
Click Configure Icon Color Source, Alarm Priority Ranges, and Custom Icon
To create a customized alarm
Note: You can override the default point state colors for this element by creating a custom color palette. See Configuring Color Palettes and Color palette for a screen or object for more information. Additional Resources
|
|||||
|
IconConfiguration.ShowIcon ShowAlarmIcon |
|
|||||
Flip
|
||||||
|
EnableFlip |
The Flip enabled property indicates whether to enable flipping of the Detail control when clicked. |
|||||
|
ObjectPath |
The Object path property specifies the path to the object file (.cob) that will be shown on the reverse of the Detail control when flipped. Click
Note: Canvas object files (.cob) are generally not supported in the CygNet Thin Web Client, with the exception of an object file used as the reverse side of the Detail control when flipped. Object files created for this purpose must following the TWC naming and storage rules: no spaces in the file name, no special characters, and the .cob file must be saved in a BSS folder, preferably in the same folder as the screen file with the Detail control. Note that while many of an Object's properties are visible in the Canvas user interface, they may not be supported in an object file created for a Detail control. Consult the Object Properties topic for more information. |
|||||
|
ObjectFileSource |
The Object source property specifies the source for the object that will be shown on the reverse of the Detail control when flipped. Options include:
|
|||||
Generic
|
||||||
|
String |
|
|||||
|
YesNo |
|
|||||
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.
