BBjGrid::setStartEditSelectionMode

Description

In BBj 10.0 and higher, this method sets the selection mode that will be used when a cell in a BBjGrid is edited.

Syntax

Return Value

Method

void

setStartEditSelectionMode(int mode)

Parameters

Variable

Description

mode

Specifies the selection mode used:

 

START_EDIT_SELECTS_START

For InputE and InputD, places cursor at beginning of text when editing starts. 

 For InputN places cursor at beginning of number (but skipping over any minus sign) when editing starts.

 

START_EDIT_SELECTS_ALL

Selects all text selected when editing starts

 

START_EDIT_SELECTS_END

For InputE and InputD, places cursor at end of text when editing starts.

For InputN, places cursor at end of number (end of integer part if the number contains a decimal) when editing starts.

Return Value

None.

Remarks

By default, the highlight method is START_EDIT_SELECTS_ALL.

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()

See Also

BBjAPI

BBjSysGui

BBjWindow

BBjGrid::getStartEditSelectionMode

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