GetColumnWidth

Retrieve the width of a column

WSupported on Windows

 

 

 

status = %AX_CALL(axlist_id, "GetColumnWidth", 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 retrieved. (n)

width

The returned width of the column (in pixels). (n)

Discussion

The GetColumnWidth method retrieves 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 multi-line list items.

See also

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)