DialogState
Short summary
DialogState is an enumeration to express the state of a popup dialog.
For details check the state diagram below.
Diagram
throw
┌───────────────────────────────────┐
| |
┌───────────────┐ ┌──────────▼──────────┐ ┌────────┴──────┐
| | throw | | user input | |
| Reset ├────────────────► WaitForConfirmation ├───────────────► Confirmed |
| | | | | |
└──────▲───────┘ └──────────┬─────────┘ └───────┬───────┘
| clear | |
└────────────────────────────────────┴─────────────────────────────────┘
Type of the enumartion is DINT
Underlying type: DINT
Components
| Name | Value | Comment |
|---|---|---|
| CLOSED | TO_DINT ( TcEventConfirmationState.Reset ) | the dialog is waiting for user input |
| QUEUED | TO_DINT ( TcEventConfirmationState.WaitForConfirmation ) | the dialog was finished by the user with a selection |
| FINISHED | TO_DINT ( TcEventConfirmationState.Confirmed ) | the dialog was finished by the user with a selection |
Code
Declaration
{attribute 'qualified_only'}
{attribute 'to_string'}
TYPE DialogState :
(
(*the dialog is not active*)
CLOSED := TO_DINT(TcEventConfirmationState.Reset),
(*the dialog is waiting for user input*)
QUEUED := TO_DINT(TcEventConfirmationState.WaitForConfirmation),
(*the dialog was finished by the user with a selection*)
FINISHED := TO_DINT(TcEventConfirmationState.Confirmed)
)DINT;
END_TYPE