BBjGrid::getStartEditSelectionMode

Description

In BBj 10.0 and higher, this method returns the selection mode that will be used when starting to edit a cell in a BBjGrid.

Syntax

Return Value

Method

int

getStartEditSelectionMode()

Parameters

None.

Return Value

Value

Description

START_EDIT_SELECTS_START

Places cursor at beginning of text when editing starts.

START_EDIT_SELECTS_ALL

Selects all text selected when editing starts.

START_EDIT_SELECTS_END

Places cursor at end of text when editing starts.

Remarks

By default, the START_EDIT_SELECTS_ALL mode is used.

Example

open (unt)"X0"
sysgui! = bbjapi().getSysGui()
window!= sysgui!.addWindow(40,40,800,500,"Simple grid",$00010083$)
grid!=window!.addGrid(115,300,800,40,40,700,400,$$,5,3)
grid!.setStartEditSelectionMode(grid!.START_EDIT_SELECTS_END)
print grid!.getStartEditSelectionMode()
return

See Also

BBjAPI

BBjSysGui

BBjWindow

BBjGrid::setStartEditSelectionMode

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