SetColumnWidths Method (LISTVIEW)


10.3A, PLBCMP GUI Only

 

The SetColumnWidths method retrieves sets the width of all columns in a LISTVIEW object as determined from an input string that contains decimal values separated by a colon (:). The method uses the following format:

 

[label]

{object}.SetColumnWidths

[GIVING {return}] USING [*Widths=]{widths}

 

Where:

label

Optional. A Program Execution Label.

object

Required. A LISTVIEW object that is accessed.

return

Optional. A Numeric Variable that indicates the number of column width values processed.

widths

Required. A Character String Variable that contains decimal values for the width of each column in a LISTVIEW. The decimal values are separated by a colon.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. The {width} decimal values are specified in pixels for the width for each column.

  2. If the value returned is zero, the ZERO Condition Flag is set.

  3. If {return} is too small to contain the return count, the OVER Condition Flag is set.

  4. The EOS Condition Flags are always cleared.

 

 

See Also: Method Syntax, LISTVIEW Methods



PL/B Language Reference SetColumnWidth Method (LISTVIEW) SetEditColumn (LISTVIEW)