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 Meaning/behavior
backgroundpicture Variable type: String
Name of background icon
backgroundpicturedisabled Variable type: String
Name of background icon for the disabled state
backgroundpicturepressed Variable type: String
Name of background icon for the pressed state
picture Variable type: String
Name of foreground icon
picturedisabled Variable type: String
Name of foreground icon for the disabled state
picturepressed Variable type: String
Name of foreground icon for the pressed state
picture_textalignedtopicture Variable type: Bool
Value:
1 = true
0 = false
Button text is aligned on the icon
picturedisabled_textalignedtopicture Variable type: Bool
Value:
1 = true
0 = false
Button text is aligned on the "disabled state" icon
picturepressed_textalignedtopicture Variable type: Bool
Value:
1 = true
0 = false
Button text is aligned on the "pressed state" icon
backgroundpicture_keepaspectratio Variable type: Bool
Value:
1 = true
0 = false
The aspect ratio of the background icon is retained
or ignored
Generating user dialogs
1.12 Configuring your own buttons
Easy XML
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1 153