Alignment
property (DataWindow object)
Description
The alignment of the control’s text within its borders.
Applies to
Column, Computed Field, and Text controls
Syntax
PowerBuilder dot notation:
|
1 |
dw_control.Object.controlname.Alignment |
Describe and Modify argument:
|
1 |
"controlname.Alignment { = ' alignmentvalue ' }" |
SyntaxFromSql:
|
1 |
Text ( ... Alignment = alignmentvalue ... ) |
|
Parameter |
Description |
|---|---|
|
controlname |
The name of the control for which you want to get |
|
alignmentvalue |
(exp) A number specifying the type of alignment for Values are: 0 — 1 — Right 2 — 3 — Justified When generating |
Usage
When you select justified, the last line of text is not stretched
to fill the line. Controls with only one line of text look left
aligned.
In the painter
Select the control and set the value using:
-
Properties view, General tab
-
StyleBar
Examples
|
1 2 3 |
dw1.Object.emp_name_t.Alignment = 2 ls_data = dw1.Describe("emp_name.Alignment") dw1.Modify("emp_name_t.Alignment='2'") |