Justification_Mode - DfBaseTextbox
Aligns the text in the control
Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None
Syntax
Property Integer Justification_Mode
| Access Type | Syntax |
|---|---|
| Read Access: | Get Justification_Mode to IntegerVariable |
| Write Access: | Set Justification_Mode to IntegerVariable/Value |
Description
This property aligns the text within the control. When using a mode other than JMode_Left, you will probably want to set Auto_Size_State to false.
Valid values:
| Col 1 | Col 2 |
|---|---|
| JMode_Left | Justify text to left |
| JMode_Center | Justify text in center |
| JMode_Right | Justify text to right |
| JMode_VCenter | Justify text to vertical center |
You can combine any of the literal values listed above (e.g., JMode_Center + JMode_VCenter). However, try to avoid combinations that conflict (e.g. JMode_Left + JMode_Center).
Sample
This example would center static text both vertically and horizontally.
Set Justification_Mode to (JMode_Center +JMode_VCenter)