TBColumn() > Instance variables |
Code block selecting the color of data cells depending on their values
Data type: | B | Default: | NIL |
The instance variable :colorBlock can be assigned a code block which selects the color for a single data cell within a column of data. If it is present, :colorBlock is passed the return value of :block, which is the data to be displayed. :colorBlock must return an array with two numeric elements. Each element points to a color value of the color string stored in the instance variable :colorSpec of the TBrowse object containing the TBColumn object. The first element selects the color for normal display of the data cell, and the second points to the color to use for highlighting the data cell.
http://www.xHarbour.com