1.12.2.2 Properties for the pushbutton
Additional properties are assigned to the control with the property tag.
Determining button properties
The checkable attribute enables the button to be used as checkable pushbutton. To do so, the
value of the attribute must be set to true.
Syntax
<control name="name" xpos="x position" ypos="y position"
fieldtype="pushbutton" >
<property checkable="true/false" />
</control>
Disabling a switch
The disabled attribute controls whether or not the button can be operated. If the value is true,
control actions are not processed.
Changes in state caused by an assigned reference variable result in updating of the button.
Syntax
<property disabled="true/false" />
Example
<control name="name" xpos="x position" ypos="y position"
fieldtype="pushbutton" >
<caption alignment=“left“>Button text</caption>
<property disabled="true " />
</control>
Assigning icons
The predefined design can be covered over by specifying your own icons or button colors. An
icon can be assigned to the button for each of the states "not pressed", "pressed" and
"disabled". If there is no assignment for the states "pressed" or "disabled", the control displays
the icon for the "not pressed" state.
Other attributes control the alignment, scaling and transparency of each icon.
Attribute Meaning/behavior
Picture Icon in foreground
Name of the icon for the "not pressed" state
PicturePressed Icon in foreground
Name of the icon for the "pressed" state
PictureDisabled Icon in foreground
Name of the icon for the "disabled" state
Generating user dialogs
1.12 Configuring your own buttons
Easy XML
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1 151