SetColumnWidth
WSupported on Windows
|
|
|
|
status = %AX_CALL(axlist_id, "SetColumnWidth", column, width)
Return value
status
Returns true if successful, otherwise false. (n)
Arguments
axlist_id
The ID for the ActiveX Toolkit list. This ID can be retrieved with L_STATUS. (n)
column
The column number of the cell whose width is being modified. (n)
width
The new width of the column (in pixels). (n)
Discussion
The SetColumnWidth method sets the width, in pixels, for a specified column.
All cells in the same physical column must have the same width, so column is limited to the number of columns across, even for lists with multi-line items.
See also
- GetColumnWidth method
- %AX_CALL routine
Examples
The following example increases the width of the third column by 7%.
xcall l_status(listid, D_LAXCTRL, axctrl) ;Get control ID xcall ax_call(axctrl, "GetColumnWidth", 3, width) xcall ax_call(axctrl, "SetColumnWidth", 3, (width * 107)#2)