bgiInsertRichText

Inserts text at the current caret position, applying current format. Takes richTextBoxID (Int) and text (String). Returns 1 on success, 0 if rich text box not found.

BGI GUI

Parameters & Returns

Parameters

richTextBoxID Int
text String

Returns

Int

Quick Summary

Inserts text at the current caret position, applying current format. Takes richTextBoxID (Int) and text (String). Returns 1 on success, 0 if rich text box not found.

Technical Exegesis...

Inserts text at the current caret position in a rich text box, applying stored format if set. Searches gizmoMap for the rich text box ID. Converts input string from UTF-8 to wide string. Gets current selection range with EM_EXGETSEL, records start position (cpMin). Inserts text with EM_REPLACESEL (TRUE for undo support) - replaces selection if any, otherwise inserts at caret.

Example

Example.bam
; No example implemented yet