GUI Help > Special > setSelStart
setSelStart
setSelStart handle editGadget, int selStart
Description: Sets the position of the caret (the thin blinking cursor) within the edit gadget if no text is selected. Otherwise, it sets the first character of the current selection in an edit gadget. Used in combination with setSelLen to set the length of the selected text.
Return Value:
Parameters:
editGadget | Handle to an edit gadget
selStart | Zero based index of character which will be the first in the current selection. Set this to -1 to deselect all text.
Remarks:
See Also:
Example: (Note: You will need to include the GUI constants file for this example to work)