BBjEditBox::getSelection
Description
In BBj 12.00 and higher, this method returns the selected text in a BBjEditBox control.
Syntax
Return Value |
Method |
getSelection() |
Parameters
None.
Return Value
Returns a four-element BBjVector that identifies the currently selected text in the BBjEditBox control. If the vector is Selection!, then Selection!.getItem(0) and Selection!.getItem(1) identify the paragraph and offset of the beginning of the selected text while Selection!.getItem(2) and Selection!.getItem(3) identify the paragraph and offset of the end of the selected text. All values are zero-based. If the start and end points are the same, there is no selection and the location of the caret (insertion point) is reported.
Remarks
This is the same structure returned from BBjCEdit::getSelection, but the BBjEditBox paragraph numbers are always 0.
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.