Name
Textentry.GetSelection -- get text selection
Synopsis
start, end = moai.DoMethod(id, "GetSelection")
Function
Returns the range of the currently selected text. Offsets start at 0 which indicates the first character. If no text is selected, -1 is returned for both values.

Inputs
id
id of the textentry object
Results
start
start offset
end
end offset

Show TOC