BBjGrid::getStripeCount


Description

In BBj 9.0 and higher, this method returns the number of BBjGrid rows to alternate between the stripe color and the default background color.

Syntax

Return Value

Method

int

getStripeCount()

Parameters

None.

Return Value

Returns the number of rows to alternate between the stripe color and the default background color.

Remarks

The default value is 1, meaning that grid rows will alternate with one row as the stripe color, then one row as the background color, and so on.

Example

rem ' BBjGrid::getStripeCount

sysgui = unt
open (sysgui)"X0"
bbjapi! = BBjAPI()
sysgui! = bbjapi!.getSysGui()
window! = sysgui!.addWindow(100,100,320,210,"Grid Striping",$00010003$)
window!.setCallback(bbjapi!.ON_CLOSE,"eoj")
rows=10,cols=10
grid! = window!.addGrid(101,10,10,300,200,$$,rows,cols)
grid!.setRowHeight(19)
grid!.setDefaultColumnWidth(30)
grid!.setMainGridStripeColor(bbjapi!.makeColor(241,245,250))
grid!.setStripeCount(2)
count = grid!.getStripeCount()
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.