PushButton.Align
The PushButton Control Object that is returned by the AddPushButton function has an Align property. The Align property defines the default position for text that is shown on the Push Button.
Syntax |
ControlObject.Align = Value Where ControlObject. is the name of the variable (declared in your script) that is used to store the PushButton Control Object that is returned by the AddPushButton function. |
Description |
Sets the default position of text on the Push Button. |
Arguments |
Value {integer} 0—Sets the default position to left. 1—Sets the default position to center. 2—Sets the default position to right. |
Returns |
Integer (alignment value) |
Example:
PushButton1.Align = 2
Where:
- PushButton1 is the name of the variable that stores the PushButton Control Object returned by the AddPushButton function
- 2 sets the text on the Push Button to be aligned to the right.