BBjEditBox::select

Description

In BBj 12.0 and higher, this method selects a chunk of text in a BBjEditBox control.

Syntax

Return Value

Method

void

select(int offset1, int offset2)

Parameters

Variable

Description

offset1

Specifies the zero-based offset where the selection begins.

offset2

Specifies the zero-based offset where the selection ends.

Return Value

None.

Example

rem ' BBjEditBox::select

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(100,100,350,125,"select",$00090083$)
window!.setCallback(window!.ON_CLOSE,"eoj")
text$ = "The quick brown fox jumpsover the lazy dog."
editbox! = window!.addEditBox(101,25,25,300,25,text$,$$)
editbox!.focus()
select! = window!.addToolButton(102,25,75,150,25,"Select",$$)
select!.setCallback(select!.ON_TOOL_BUTTON_PUSH,"select")
process_events

eoj:
release

select:
    print editbox!.getSelection()
    editbox!.select(4,9)
    print editbox!.getSelection()
return

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

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