BBjGrid::setMainGridStripeColor

Description

In BBj 9.00 and higher, this method sets an optional background stripe color of BBjGrid.

Syntax

Return Value

Method

void

setMainGridStripeColor(BBjColor color!)

Parameters

Return Value

Method

color!

Specifies the color.

Return Value

None.

Remarks

The stripe color overrides the background color of even-numbered rows.

Example

rem' BBjGrid::setMainGridStripeColor
sysgui = unt
open (sysgui)"X0"
bbjapi! = BBjAPI()
sysgui! = bbjapi!.getSysGui()
window! = sysgui!.addWindow(100,100,300,200,"Grid Striping",$00010003$)
window!.setCallback(bbjapi!.ON_CLOSE,"eoj")
rows=10,cols=10
grid! = window!.addGrid(101,102,103,10,10,280,180,$91ce$,rows,cols)
grid!.setRowHeight(25)
grid!.setRowHeaderWidth(25)
grid!.setDefaultColumnWidth(40)
grid!.setHorizontalScrollable(1)
grid!.setVerticalScrollable(1)
grid!.setMainGridStripeColor(bbjapi!.makeColor(241,245,250))
stripe! = grid!.getMainGridStripeColor()
for row=0 to rows-1
    for col = 0 to cols-1
        text$=str(row)+","+str(col)
        grid!.setCellText(row,col,text$)
    next col
next row
grid!.focus()
process_events

eoj:
release

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

BBjColor

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.