CGrid:SetBkColor


The SetBkColor method sets the background color of a CGrid cell. Also see SetFontColor. Use this method to highlight a cell. This method overrides the initial grid properties defined by the values of GridParams.sBodyBk and GridParams.sHdgBk.

Syntax

CGrid:SetBkColor( nCol, nRow, strRGB )

bullet.gif    Where nCol and nRow are the column and row location of the cell.

bullet.gif    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.

Example

The following script sets the background color of column 4, row 2:

G = new_grid()

-- create a new CGrid object

-- assemble the grid

 

G:SetBkColor( 4, 2, "50,100,50")

-- set the background color at column 4, row 2

Related Topics

CGrid class, SetFontColor


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.