Skip to main content

DialogOption

Short summary

DialogOption is a data type for configuration of buttons in dialogs.

Access: -

NameTypeComment
textTc2_System.T_MaxStringtext to be shown
resultDINTthe returned result value if this option was choosen
userlevelDWORDa user level needed to select this option
additionalDataTc2_System.T_MaxStringany additional data needed for the template, e.g. an enabled flag

Code

Declaration

TYPE DialogOption :
STRUCT
(*text to be shown*)
text :Tc2_System.T_MaxString;
(*the returned result value if this option was choosen*)
result :DINT;
(*a user level needed to select this option*)
userlevel :DWORD;
(*any additional data needed for the template, e.g. an enabled flag*)
additionalData :Tc2_System.T_MaxString;
END_STRUCT
END_TYPE