Code: Select all
Result = SelectGadgetText(#Gadget, SelectionStart.i, SelectionEnd.i)
If SelectionStart = 0 and SelectionEnd = -1, all text is selected. If both parameters are -1, the selection is cleared. Otherwise, the text is selected between the two points.
On Windows, I do this with:
Code: Select all
SendMessage(GadgetID(#Gadget), #EM_SETSEL, SelectionStart, SelectionEnd)
