Sets the text selection range in a rich text box control.
Takes richTextBoxID (Int), start (Int), and end (Int).
Returns 1 on success, 0 if rich text box not found.
BGI GUI
Parameters & Returns
Parameters
richTextBoxIDInt
startInt
endInt
Returns
Int
Quick Summary
Sets the text selection range in a rich text box control.
Takes richTextBoxID (Int), start (Int), and end (Int).
Returns 1 on success, 0 if rich text box not found.
Technical Exegesis...
Sets the text selection range in a rich text box control by character positions. Searches gizmoMap for the rich text box ID. Sends EM_SETSEL message with start and end positions. Returns 1 on success, 0 if rich text box not found.
This function selects a text range by character index (0-based). Start is the first selected character position, end is the position after the last selected character. To select all text, use start=0, end=-1 (special value meaning "to the end").
Sets the text selection range in a rich text box control by character positions. Searches gizmoMap for the rich text box ID. Sends EM_SETSEL message with start and end positions. Returns 1 on success, 0 if rich text box not found.
This function selects a text range by character index (0-based). Start is the first selected character position, end is the position after the last selected character. To select all text, use start=0, end=-1 (special value meaning "to the end"). To position cursor without selection, use start=end. To select from position 5 to 10 (characters 5-9), use start=5, end=10. Typically used before bgiSetRichTextFormat to apply formatting to specific text portions. Scroll view if selection is outside visible area.