Width.Autosize DataWindow object property
Description
(RichText presentation style only) Whether the column or computed
field input field adjusts its width according to the data it contains.
The Width.Autosize and Multiline properties can be set together
so that the input field can display multiple lines.
Controls
Column and Computed Field controls in the RichText presentation
style
Syntax
PowerBuilder dot notation:
1 |
<span>dw_control</span>.Object.<span>controlname</span>.Width.Autosize |
Describe and Modify argument:
1 |
"<span>controlname</span>.Width.Autosize { = '<span> value </span>' }" |
Parameter |
Description |
---|---|
controlname |
The name of the column or computed field |
value |
(exp) Whether the
|
Usage
In the painter
Select an input field so that it is flashing, then right-click
and select Properties from the pop-up menu. Set the value on the
property sheet, Input Field tab, Fixed Size option.
Examples
1 |
string setting |
1 |
setting = dw1.Object.emp_name.Width.Autosize |
1 |
dw1.Object.emp_name.Width.Autosize = "yes" |
1 |
setting = dw1.Describe("emp_name.Width.Autosize") |
1 |
dw1.Modify("emp_name.Width.Autosize=yes") |