BBjGridCell::getChangedData

Description

In BBj 18.00 and higher, this method returns a list of data that has changed in the BBjGridCell. This is the only data that will be updated when the cell is set to the grid.

Syntax

Return Value Method

BBjVector

getChangedData()

Parameters

None.

Return Value

Returns a BBjVector of int constant values of the changed data.

Constants

Value Constant

0

ROW

1

COLUMN

2

TEXT

3

MASK

4

STYLE

5

FOREGROUND_COLOR

6

BACKGROUND_COLOR

7

IS_EDITABLE

8

IS_SELECTED

9

RESTORE

10

RELATED

11

STATE

12

LIST_SELECTION

13

IMAGE_LOCATION

14

FONT

15

HEIGHT (not currently used)

16

WIDTH (not currently used)

17

TOOLTIP

Example

sysgui! = bbjapi().openSysGui("X0")

window! = sysgui!.addWindow(10,10,520,300,"Grid Events",$00010082$)
window!.setCallback(window!.ON_CLOSE,"APP_CLOSE")

grid! = window!.addGrid(101,102,103,10,10,500,200,$000e$)
grid!.setRowHeight(20)
cols=30,rows=10
grid!.setNumColumns(cols)
grid!.setNumRows(rows)
grid!.setDefaultColumnWidth(50)
grid!.setUserResizable(1)

cells! = bbjapi().makeVector()
for row=0 to rows-1
    for col=0 to cols-1
        cells!.addItem("C"+STR(col)+" R"+STR(row))
    next col
next row
grid!.setCellText(cells!)

data! = grid!.getRowData(1)
cell! = data!.first()

cell!.setText("Hello World")
print cell!.getChangedData()
process_events

APP_CLOSE:
release

See Also

BBjAPI

BBjColor

BBjGrid

BBjGrid::getColumnData

BBjGrid::getCellRange

BBjGrid::getRowData

BBjGridData

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