TBrowse() > Display methods |
Changes the color of a group of cells in the browse display.
:colorRect( <aTLBR>, <aColorIndex> ) --> self
Method :colorRect() can be used to change the color of a rectangular area within the data rows of the browse display. This area is defined using ordinal positions of data rows and columns, not screen coordinates. The top and bottom borders of the rectangle must be specified as ordinal row positions in the range from 1 to :rowCount, and the left and right borders are ordinal column positions ranging from 1 to :colCount.
The two array elements of <aColorIndex> point to color values of the color string held in :colorSpec. The first element selects the color for normal display while the second determines the color for the browse cursor when it is moved into the rectangular area <aTLBR>.
When the colored area is scrolled vertically outside the browse display, the cells in this area do not retain the changed color.
http://www.xHarbour.com