## The `colsize' property

Valid for: Grid (Special syntax applies)

You can set the size of the columns of a Grid control using the syntax:

WindowRef.ControlName.colsize Cols Sizes
or:
'WindowName.ControlName' ŚWI 'colsize' Cols Sizes

where Cols is a scalar or vector list of column numbers, and Sizes is a matching vector (or scalar) of the column sizes, in pixels. A column number of 0 sets the default size for all columns which are not explicitly set. Note: At least one of the Cols and Sizes parameters must be a vector, otherwise the statement will be interpreted as an attempt to read back the current sizes.

You can read back the current sizes using the syntax:

R „ WindowRef.ControlName.colsize Cols
or:
R „ 'WindowName.ControlName' ŚWI 'colsize' Cols

Note that, depending on the flags you have set in the `style` property, the user may be able to resize the columns.

Topic: APLX Help : System Classes : Properties : colsize

[ Previous | Next | Contents | Index ]