<< 点击显示目录 >> 主页 mappView帮助助手 > mapp View帮助信息 > Widgets > Process > Skyline > Actions and events |
The following section describes the possible actions and events for the widget.
Name |
Description |
Arguments |
SetVisible |
Controls the visibility of the widget. |
•value: Boolean Visible if the value is true. Otherwise, invisible. |
SetEnable |
Controls the usability of the widget. |
•value: Boolean Enabled if the value is true. Otherwise, disabled. |
SetStyle |
Sets a predefined style for the widget. |
•value: StyleReference |
ShowTooltip |
Mode "Tooltip" can be enabled using this action. When enabled, a tooltip indicator appears inside the widget. For this, a text must be configured in property "Tooltip". This text is displayed when the indicator is selected. Any other operation of a widget terminates mode "Tooltip". |
|
SetGroupModules |
Groups the modules Whether a module can be grouped or not is defined in the MpSkyline configuration in section "Machine skyline". |
•value: Boolean If true, the modules are grouped. |
SetShowModuleOption |
Shows possible options for a selected module. The options for a module are defined in the MpSkyline configuration. |
•value: Boolean If true, the options are displayed. |
SetSelectedModule |
This action selects a module. Priority of the selection arguments: id> next> previous The selection is canceled if the action is triggered with an empty string for "id", next = false and previous = false. |
•id: String Specifies the module name that should be selected. •next: Boolean If true , the next module of the currently selected module is selected. If no module is currently selected, no new selection will be made. •previous: Boolean If true , the previous module of the currently selected module is selected. If no module is currently selected, no new selection will be made.
|
Focus |
Sets the focus to the widget when keyboard operation is enabled. |
|
Name |
Description |
Arguments |
EnableChanged |
Triggered when the usability of the widget is changed. This can be changed using various options: 1) Using property enable (binding or via widget action SetEnable) 2) Using property permissionOperate 3) Using usability properties (enable, permissionOperate, OPC UA variable) of the surrounding container widget 4) Using a bound OPC UA variable with write permissions that have been changed. |
•value: Boolean "value" defines the usability of the widget. If true is returned, the widget can be used; if false, it cannot be used. |
VisibleChanged |
Triggers when the visibility of the widget is changed. This can be changed using various options: 1) Using property visible (binding or via widget action SetVisible) 2) Using property permissionView 3) Using the visibility properties (visible, permissionView) of the surrounding container widget |
•value: Boolean "value" defines the visibility of the widget. If true is returned, the widget is displayed; if false, it is not displayed. |
Click |
Triggered when clicking on the widget. |
•origin: String "origin" contains the ID of the widget that triggers the click event. •horizontalPos: String horizontalPos contains the horizontal position of event "Click" in pixels (e.g. 10px starting from the viewport). •verticalPos: String verticalPos contains the vertical position of the click event in pixels (e.g. 10px starting from viewport). |
DisabledClick |
Triggered when clicking on the disabled widget. |
•origin: String "origin" contains the ID of the widget that triggers the click event. •hasPermission: Boolean "hasPermission" defines whether the current user has the necessary rights to access it. •horizontalPos: String horizontalPos contains the horizontal position of the DisabledClick event in pixels (e.g. 10px starting from viewport). •verticalPos: String verticalPos contains the vertical position of the DisabledClick event in pixels (e.g. 10px starting from viewport). |
ModuleClick |
Triggered if a module is selected. |
•id: String Returns the name of the selected module. •type: String Returns the module type of the selected module. •index: Integer Returns the index of the selected module. •isFirst: Boolean If true, the first module in widget "Skyline" was selected. •isLast: Boolean If true, the last module in widget "Skyline" was selected. •isGroup: Boolean Returns true if the selected module is a group. •subElementId: String If the notification or option symbol is clicked, the name of the notification or option will be returned. •subElementType: String If a notification symbol is clicked, "notification" will be delivered. If an option symbol is clicked, "Option" is returned. •horizontalPos: String horizontalPos contains the horizontal position of the click event in pixels (e.g. 10px starting from viewport). •verticalPos: String verticalPos contains the vertical position of the click event in pixels (e.g. 10px starting from viewport). |
OnError |
Triggered if a communication error with the mapp component occurs. |
•result: Integer Error number transmitted by the mapp function block |
FocusIn |
Triggered when a widget gets the focus. |
|
FocusOut |
Triggered when a widget loses focus. |
|