CGridView:SetBkColor
The SetBkColor method sets the background color of a CGridView cell. Also see SetFontColor. Use this method to assign a different background color to a specific cell. This method overrides the initial grid properties defined by the values of GridParams.sBodyBk and GridParams.sHdgBk.
CGridView:SetBkColor( nCol, nRow, strRGB )
Where nCol and nRow are the column and row location of the cell.
strRGB is a string specifying the R,G,B components of the color. Each color component is in the range 0 through 255. For example, "0,0,0" is black and "255,255,255" is white.
The following script sets the background color of column 4, row 2:
|
-- attach an existing grid window |
|
-- set the background color at column 4, row 2 |
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.