ColorBlock (Assignable)
Contains an optional code block that determines the color of data
items as they are displayed. If present, this block is executed each
time a new value is retrieved via the TBColumn:Block (the data
retrieval block). The newly retrieved data value is passed as an
argument to the TBColumn:ColorBlock, which must return an array
containing two numeric values. The values returned are used as
indexes into the color table of the TBrowse object as described in
the TBColumn:defColor reference below.
The TBColumn:ColorBlock allows display colors for data items based on
the value of the data being displayed. For example, negative numbers
may be displayed in a different color than positive numbers.
oTBCol:ColorBlock := {|x| IF(x < 0, {5,2},;
IF(x > 0, {8,2}, {4,2}))}