BBjGridCell::getToolTip

Description

In BBj 19.20 and higher, this method returns the tool tip text contained within the BBjGridCell.

Syntax

Return Value Method
String getToolTip()

Parameters

None.

Return Value

Returns the snapshot tool tip text inside the BBjGridCell.

Example

gui! = BBjAPI().openSysGui("X0")
wnd! = gui!.addWindow(gui!.getAvailableContext(),100,50,500,400,"Grid Test")
grd! = wnd!.addGrid(wnd!.getAvailableControlID(),32,24,252,133)
grd!.setEnhancedSelectionModelEnabled(1)
grd!.setNumColumns(2)
grd!.setFitToGrid(BBjGrid.AUTO_RESIZE_NEXT_COLUMN)
vec! = new BBjVector()
vec!.addItem("1")
vec!.addItem("Item 1")
vec!.addItem("2")
vec!.addItem("Item 2")
vec!.addItem("3")
vec!.addItem("Item 3")
grd!.setNumRows(3)
grd!.setCellText(vec!)

rem 'SelectedCell calls are here.
cellvec! = new BBjVector()
cell1! = grd!.makeCell(0,0)
cell1!.setToolTip("Set a ToolTip!")
cellvec!.add(cell1!)
grd!.setCells(cellVec!)
print grd!.getSelectedCells()
wnd!.setCallback(wnd!.ON_CLOSE,"close")
process_events

close:
release

APP_CLOSE:
release

See Also

BBjAPI

BBjGrid

BBjGridCell

BBjGridData

BBjGridCell::setToolTip

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