bgiSetRichTextSelection

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

richTextBoxID Int
start Int
end Int

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").

Example

Example.bam
; No example implemented yet