HmiState
HmiStateControl
Displays controls to save and load HMI state recipes.The HMI state represents the current configuration of the HMI, including all settings and values that can be linked to tools.The HMI state must be loaded in order to apply the saved configuration.
PROPERTIES
| Name | Type | Description | IN/OUT |
|---|---|---|---|
| Width | Double | Defines the control's width | - |
| Height | Double | Defines the control's height | - |
| IconWidth | Int32 | Defines the icon's width | - |
| IconHeight | Int32 | Defines the icon's height | - |
| IconLoad | StringPath | Defines the icon to display for Load button | - |
| IconDelete | StringPath | Defines the icon to display for Load button | - |
| IconSave | StringPath | Defines the icon to display for Save button | - |
| IconSaveAs | StringPath | Defines the icon to display for SaveAs button | - |
| ButtonBackground | Brush | Defines buttons' background color | - |
| ButtonBorderBrush | Brush | Defines buttons' border color | - |
| ButtonWidth | Double | The buttons' width | - |
| ButtonHeight | Double | The buttons' height | - |
| AutoLoadOnSelection | Boolean | Auto-load Hmi State when new value is selected (by linked name or manually) | IN |
| SelectedIndex | Int32 | The selected Recipes's index | IN-OUT |
| SaveBehavior | HmiStateSaveBehavior | Sets the save behavior: Global:save all hmi controls , Container: save only controls in the same container of current control | - |
| AutoLoadOnStart | Boolean | Auto-load Hmi State when project is started | IN |
| AutoSaveOnStop | Boolean | Auto-save Hmi State when project is stopped | IN |
| Name | String | The control's name | - |
| Enable | Boolean | Defines if the control is enabled in the UI | IN |
| IsVisible | Boolean | Defines if the control is visible in the UI | IN |
| AnchorHorizontal | HorizontalAlignment | Defines the control's horizontal anchor respect to its parent container | - |
| AnchorVertical | VerticalAlignment | Defines the control's vertical anchor respect to its parent container | - |
| LocationX | Double | Defines the control's location X.This value is always refered to parent's left margin | - |
| LocationY | Double | Defines the control's location Y.This value is always refered to parent's top margin | - |
| Row | Int32 | Defines the row coordinate where the control is loaded.This value has effect only inside a Grid | - |
| Column | Int32 | Defines the column coordinate where the control is loaded.This value has effect only inside a Grid | - |
| RowSpan | Int32 | Defines the number of rows where the control spans within.This value has effect only inside a Grid | - |
| ColumnSpan | Int32 | Defines the number of columns where the control spans within.This value has effect only inside a Grid | - |
| Background | Brush | Defines the control's background color | - |
| FontSize | Double | Defines the font size.This value is inherited by children, until explicitly set by child control. | - |
| FontFamily | FontFamily | Defines the font family.This value is inherited by children, until explicitly set by child control. | - |
| FontWeight | FontWeight | Defines the font weight.This value is inherited by children, until explicitly set by child control. | - |
| FontStyle | FontStyle | Defines the font style.This value is inherited by children, until explicitly set by child control. | - |
| Tooltip | String | Defines tooltip to show on mouse over | - |
| AccessLevel | UserLevel | Defines the requested user level to interact with the control | - |
| VisibilityLevel | UserLevel | Defines the requested user level to see the control | - |
HmiStateService
Allows to auto-save and auto-load the HMI state when the project is started or stopped.This control is displayed only at design time and it's meant to be used as quick HMI state loader/saver.To get a fine control over HMI states for the project, use the HmiStateControl instead.
PROPERTIES
| Name | Type | Description | IN/OUT |
|---|---|---|---|
| SaveBehavior | HmiStateSaveBehavior | Sets the save behavior: Global:save all hmi controls , Container: save only controls in the same container of current control | - |
| AutoLoadOnStart | Boolean | Auto-load Hmi State when project is started | IN |
| AutoSaveOnStop | Boolean | Auto-save Hmi State when project is stopped | IN |
| Name | String | The control's name | - |
| Enable | Boolean | Defines if the control is enabled in the UI | IN |
| IsVisible | Boolean | Defines if the control is visible in the UI | IN |
| Row | Int32 | Defines the row coordinate where the control is loaded.This value has effect only inside a Grid | - |
| Column | Int32 | Defines the column coordinate where the control is loaded.This value has effect only inside a Grid | - |
| RowSpan | Int32 | Defines the number of rows where the control spans within.This value has effect only inside a Grid | - |
| ColumnSpan | Int32 | Defines the number of columns where the control spans within.This value has effect only inside a Grid | - |
| Background | Brush | Defines the control's background color | - |
| FontSize | Double | Defines the font size.This value is inherited by children, until explicitly set by child control. | - |
| FontFamily | FontFamily | Defines the font family.This value is inherited by children, until explicitly set by child control. | - |
| FontWeight | FontWeight | Defines the font weight.This value is inherited by children, until explicitly set by child control. | - |
| FontStyle | FontStyle | Defines the font style.This value is inherited by children, until explicitly set by child control. | - |
| Tooltip | String | Defines tooltip to show on mouse over | - |
| AccessLevel | UserLevel | Defines the requested user level to interact with the control | - |
| VisibilityLevel | UserLevel | Defines the requested user level to see the control | - |