ListView – GetColWidth Function

Returns the width, in pixels, of one or more columns of a ListView control.

CR : ¸ ’Do 'GetColWidth' inx

where inx is an integer scalar or vector, the column number(s) of interest.

The result is an integer scalar or vector. Each value is the width, in pixels, of the corresponding column in the right argument. The number of items in the result is also a function of the current value of the View property of the ListView control:

ViewDescription
IconThe result is an empty vector. There is no column width in this view.
SmallIconThe result is an empty vector. There is no column width in this view.
ListThe result is a one-element vector. There is only one column in this view. The value of the right argument is treated as if it is ŒIO.
ReportThe result contains one element for each item in the right argument. The width of the rightmost data column in the ListView is returned for any column index that lies outside of the range of data columns.


Continue to: ListView – SetColWidth Function
© Copyright Causeway Graphical Systems Ltd 2003