Skip to main content
Version: Next

LISTBOX Get column width

LISTBOX Get column width ( {* ;} object {; minWidth {; maxWidth}} ) : Integer

ParameterTypeDescription
*OperatorIf specified, object is an object name (string) If omitted, object is a variable
objectanyObject name (if * is specified) or Variable (if * is omitted)
minWidthIntegerMinimum column width (in pixels)
maxWidthIntegerMaximum column width (in pixels)
Function resultIntegerColumn width (in pixels)

This command is not thread-safe, it cannot be used in preemptive code.

Description

The LISTBOX Get column width command returns the width (in pixels) of the column set in the object and * parameters. You can pass either a list box column or a column header in the object parameter.

If you pass the optional * parameter, you indicate that the object parameter is an object name (string). If you do not pass this parameter, you indicate that the object parameter is a variable. In this case, you pass a variable reference instead of a string. For more information about object names, refer to the Object Properties section.

LISTBOX Get column width can return the resizing limits of the column in the minWidth and maxWidth parameters. These limits can be specified via the LISTBOX SET COLUMN WIDTH command.
If no minimum and/or maximum value has been set for the column, the corresponding parameter returns 0.

See also

LISTBOX SET COLUMN WIDTH