BBjGrid::isSelected

Description

In BBj 19.00 and higher, this method returns whether a specific grid cell is selected.

Syntax

Return Value

Method

boolean

isSelected(BBjGridCell p_cell)

isSelected(int p_row, int p_column)

Parameters

Variable

Description

p_cell

Specifies the BBjGridCell.

p_row

Specifies the 0-based row of the cell to test for selection.

p_column

Specifies the 0-based column of the cell to test for selection.

Return Value

True indicates that the grid cell is selected.

Example

declare BBjSysGui sysgui!
declare BBjWindow win!
declare BBjStandardGrid grid!

sysgui!=BBjAPI().openSysGui("X0")
win!=sysgui!.addWindow(0,0,640,480,"Grid Testing Program")
grid!=win!.addGrid(101,0,0,640,400,$8040$,10,10)

grid!.setSelectedCell(0,0)

print grid!.isSelected(0,0)
print grid!.isSelected(1,1)

process_events

See Also

BBjAPI

BBjGrid

BBjWindow

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