InsertColumnFgClr Method (LISTVIEW)
8.7, PLBCMP GUI Only
The InsertColumnFgClr method adds a special column into a LISTVIEW object that allows specification of the foreground color of a line item row. The method uses the following format:
|
|
|
|
Where:
label
Optional. A Program Execution Label.
object
Required. A LISTVIEW object into which a special column is inserted.
return
Optional. A Numeric Variable that returns the new column number.
index
Required. A Numeric Variable or decimal number that specifies zero-based position of the special column.
Flags Affected: EOS, OVER, ZERO
Note the following:
The data string stored into each sub item of the new column specifies a hexadecimal string that represents the RGB foreground color value of the line item. The expected string format of a line item color is '0xRRGGBB'.
The foreground color column is inserted with a width size of zero. This allows the color column to exist and be used in a LISTVIEW without being visible to a user.
It is also possible to use SortColumn to sort the color data items. This can group line items with expected color characteristics.
Upon completion, {return} will contain the new zero-based column number or -1 if the method fails.
If the value returned is zero, the ZERO Condition Flag is set.
If {return} is too small to contain result of the method, the OVER Condition Flag is set.
The EOS Condition Flag is always cleared.
For improved performance in the Application Server environment, do not specify the optional return value unless needed.
See Also: Method Syntax, LISTVIEW Methods
![]() |