Width.Autosize
property (DataWindow object)
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.
Applies to
Column and Computed Field controls in the RichText presentation
style
Syntax
PowerBuilder dot notation:
|
1 |
dw_control.Object.controlname.Width.Autosize |
Describe and Modify argument:
|
1 |
"controlname.Width.Autosize { = ' value ' }" |
|
Parameter |
Description |
|---|---|
|
controlname |
The name of the column or computed field for which |
|
value |
(exp) Whether the width of the input field adjusts
|
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 2 3 4 5 |
string setting setting = dw1.Object.emp_name.Width.Autosize dw1.Object.emp_name.Width.Autosize = "yes" setting = dw1.Describe("emp_name.Width.Autosize") dw1.Modify("emp_name.Width.Autosize=yes") |