The alignment of the control’s text within its borders.
Column, Computed Field, and Text controls
PowerBuilder dot notation:
dw_control.Object.controlname.Alignment
Describe and Modify argument:
"controlname.Alignment { = ' alignmentvalue ' }"
SyntaxFromSql:
Text ( ... Alignment = alignmentvalue ... )
Parameter |
Description |
---|---|
controlname |
The name of the control for which you want to get or set the alignment. |
alignmentvalue |
(exp) A number specifying the type of alignment for the text of controlname. Alignmentvalue can be a quoted DataWindow expression. Values are:
When generating DataWindow syntax with SyntaxFromSql, the setting for Alignment applies to all text controls used as column labels. |
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
dw1.Object.emp_name_t.Alignment = 2
ls_data = dw1.Describe("emp_name.Alignment")
dw1.Modify("emp_name_t.Alignment='2'")