1.12.2.3
Control variables for the pushbutton
Button properties can be subsequently changed by assigning new values to the attribute
variables listed below. The values are assigned in an operation instruction by specifying the
control name followed by the control variable name. The two names must separated by a
period.
Syntax
<Control-Name>.<Control-Variable>
Control variable
backgroundpicture
backgroundpicturedisabled
backgroundpicturepressed
picture
picturedisabled
picturepressed
picture_textalignedtopicture
picturedisabled_textalignedtopicture
picturepressed_textalignedtopicture
backgroundpicture_keepaspectratio
Easy XML
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1
Generating user dialogs
1.12 Configuring your own buttons
Meaning/behavior
Variable type: String
Name of background icon
Variable type: String
Name of background icon for the disabled state
Variable type: String
Name of background icon for the pressed state
Variable type: String
Name of foreground icon
Variable type: String
Name of foreground icon for the disabled state
Variable type: String
Name of foreground icon for the pressed state
Variable type: Bool
Value:
1 = true
0 = false
Button text is aligned on the icon
Variable type: Bool
Value:
1 = true
0 = false
Button text is aligned on the "disabled state" icon
Variable type: Bool
Value:
1 = true
0 = false
Button text is aligned on the "pressed state" icon
Variable type: Bool
Value:
1 = true
0 = false
The aspect ratio of the background icon is retained
or ignored
153