EditBox.Align
The EditBox Control Object that is returned by the AddEditBox function has an Align property. The Align property defines the default position for text that is entered into the Edit Box.
Syntax |
ControlObject.Align = Value Where ControlObject. is the name of the variable (declared in your script) that is used to store the EditBox Control Object that is returned by the AddEditBox function. |
Description |
Sets the default position of text in the Edit Box. |
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:
EditBox1.Align = 1
Where:
- EditBox1 is the name of the variable that stores the EditBox Control Object returned by the AddEditBox function
- 1 sets the default position of the value in the Edit Box to be aligned centrally.