Description
The way text in a button is horizontally aligned.
Applies to
Button controls
Syntax
PowerBuilder dot notation:
dw_control.Object.buttonname.HTextAlign
Describe and Modify argument:
"buttonname.HTextAlign { = ' value ' }"
Parameter |
Description |
---|---|
buttonname |
The name of the button for which you want to align text. |
value |
An integer indicating how the button text is horizontally aligned. Values are: 0 -- Center 1 -- Left 2 -- Right |
Usage
In the painter
Select the control and set the value in the Properties view, General tab, Horizontal Alignment option.
Examples
dw1.Object.b_name.HTextAlign = "1" setting = dw1.Describe("b_name.HTextAlign") dw1.Modify("b_name.HTextAlign ='1'")