BBjGrid::getMainGridStripeColor

Description

In BBj 9.00 and higher, this method returns the background stripe color of the BBjGrid.

Syntax

Return Value

Method

BBjColor

getMainGridStripeColor()

Parameters

None.

Return Value

Returns the background stripe color of the grid.

Remarks

The stripe color overrides the background color of the 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.