All Canvas Control Events
This topic lists all events, which are available via the Events pane and the Canvas script editor, for all Canvas controls, tools, and objects.
See Accessing Screen Objects for more information about how to view control objects in script in the Canvas application.
When an event is enabled, the control will be automatically added to script and the Include in script property will be set to True.
Browse by letter: [B] [C] [D] [F] [I] [K] [L] [M] [N] [O] [P] [S] [T] [Z]
| Event | Control | Description | ||
|---|---|---|---|---|
|
The Broadcast Message Received event is called when a broadcast message from another screen is received. See Broadcast a Message Via Script for more information about using this event. Example Canvas.Shared.BroadcastMessageEventArgs
See Event Argument Type for more information about EventArgs. |
||||
| Click |
The Click event is called when the user clicks once on the control with the left mouse button. Examples
|
|||
|
Close |
All |
The Close event is called when the screen is closed. |
||
|
Controls Initialized |
The Controls Initialized event is called after the Initialize event has been fired on the screen and all other controls within. |
|||
|
Custom Context Menu Action |
The Custom Context Menu Action event is called when the custom context menu item is clicked. A Script event ID (configured for each custom context menu item in the Context Menu Items property for the screen or control) is passed in along with other relevant information in the context of the click, for example, facility or point tag, as appropriate. The following example shows how to use the Custom Context Menu Action event for the CygNet Grid. Substitute Grid1 with the your control. Canvas.Controls.Grid.CustomContextMenuActionEventArgs When you click on a custom context menu item from a control, Canvas will execute the following function:
CustomContextMenuActionEventArgs.EventActionID indicates the Script event ID defined in the Custom Context Menu Configuration dialog box. Example
See Event Argument Type for more information about EventArgs. |
|||
|
The Data Load Completed event is called when all series have finished loading historical data. |
||||
|
Double Click Cell |
The Double Click Cell event is called when the user double-clicks on a grid cell. Examples Canvas.Controls.Grid.AlarmGridCellDoubleClickEventArgs
Canvas.Controls.Grid.CygNetGridCellDoubleClickEventArgs
See Event Argument Type for more information about EventArgs. |
|||
|
The Facility Changed event is called when the screen's facility is changed. Example Canvas.Shared.FacilityChangedEventArgs
See Event Argument Type for more information about EventArgs. |
||||
|
All |
The Initialize event is called when the screen is created in preview or run mode to allow further initialization of the control. |
|||
|
Item Selected |
The Item Selected event is called when an item in the hierarchy is selected. This event only fires if the Selection action is Script. |
|||
|
The Key Down event is called when a key on the keyboard is pressed while this control has focus. The following example shows how to use the Key Down event for the Enter key. Apply whatever actions you want to any key. Note: In order to access to the key-related properties of the event arguments, you will need to add a reference to the WindowsBase system assembly using the Canvas Assembly Manager. After adding the reference, you will be able to safely use the Example
See Event Argument Type for more information about EventArgs. |
||||
|
Key Up |
The Key Up event is called when a key on the keyboard is released while this control has focus. The following example shows how to use the Key Up event for the Enter key. Apply whatever actions you want to any key. Note: In order to access to the key-related properties of the event arguments, you will need to add a reference to the WindowsBase system assembly using the Canvas Assembly Manager. After adding the reference, you will be able to safely use the Example
See Event Argument Type for more information about EventArgs. |
|||
|
The Live Update Changed event is called when a chart's live update setting changes. Can be used to allow interaction between charts and controls on a screen based on live updating behavior. |
||||
|
Loaded |
The Loaded event is called when the control is rendered and ready for interaction. |
|||
|
The Mouse Enter event is called when the mouse pointer enters (moves over) a control. |
||||
|
Mouse Leave |
The Mouse Leave event is called when the mouse pointer leaves (moves out of) a control. |
|||
|
The Navigate By Facility event is called when the screen receives a request to navigate by a specific facility tag. See Navigation by Facility for more information about using this event. Example Canvas.Shared.Events.NavigateByFacilityEventArgs
See Event Argument Type for more information about EventArgs. |
||||
|
Nested View Message Received |
The Nested View Message Received event is called when a nested view sends a message to its parent screen. See To communicate between screens in a nested view via script for more information about using this event. Example Canvas.Shared.NestedViewMessageEventArgs
See Event Argument Type for more information about EventArgs. |
|||
|
The Opened Via Hyperlink event is called when a screen is opened via a hyperlink. The screen issuing the hyperlink must also provide a value for a data parameter; without this custom data, the event will not fire. Example Canvas.Shared.OpenedViaHyperlinkEventArgs
Related Links
|
||||
|
The Pan Offset Changed event is called when a chart's pan offset values change. Can be used to allow interaction between charts and controls on a screen based on panning behavior. |
||||
|
Point Configuration Changed |
The Point Configuration Changed event is called when a point's configuration changes. |
|||
|
Point Value Changed |
The Point Value Changed event is called a point's value changes. |
|||
|
The Search Result Selected event is called when one of the search results is selected. This event only fires if the Selection action is Script. See the following for more information:
|
||||
|
Selected Cells Changed |
The Selected Cells Changed event is called when the grid cell selection changes. Examples Canvas.Controls.Grid.AlarmGridSelectionChangeEventArgs
Canvas.Controls.Grid.CygNetGridSelectionChangeEventArgs
See Event Argument Type for more information about EventArgs. |
|||
|
Selection Changed |
The Selection Changed event is called when the selection in the control changes or a new element is clicked. Examples Canvas.Controls.HeatMap.CanvasHeatMapSelectionChangedEventArgs
Canvas.Controls.TreeMap.CanvasTreeMapSelectionChangedEventArgs
See Event Argument Type for more information about EventArgs. Notes
|
|||
|
The Tab Selection Change event is called when the tab selection changes. |
||||
|
Tooltip Opening |
The Tooltip Opening event is called right before the tooltip opens creating a custom tooltip, which can show any desired information, for example, a value from an affiliated point, an unrelated data point, or even a CygNet note. The Tooltip mode (TooltipMode) property must be set to Script. The Tooltip Opening event supports multi-line tooltips. Example In the following example, a custom tooltip will be created that will retrieve and display three point values (Choke Position, SDV Valve Position, and Tubing Pressure) for the JOHNSON_WL facility on three separate lines.
See Event Argument Type for more information about EventArgs. |
|||
|
The Zoom Changed event is called when a chart's zoom values change. Can be used to allow interaction between charts and controls on a screen based on zooming behavior. |
||||
|
Zoom Level Changed |
The Zoom Level Changed event is called when the map’s zoom level changes. |
See Order of Event Execution for information about the order in which events are executed on a screen.
