Sets the plain text content of a rich text box control.
Takes richTextBoxID (Int) and text (String).
Returns 1 on success, 0 if rich text box not found.
BGI GUI
Parameters & Returns
Parameters
richTextBoxIDInt
textString
Returns
Int
Quick Summary
Sets the plain text content of a rich text box control.
Takes richTextBoxID (Int) and text (String).
Returns 1 on success, 0 if rich text box not found.
Technical Exegesis...
Sets the entire text content of a rich text box control, replacing any existing text. Searches gizmoMap for the rich text box ID. Converts input string from UTF-8 to wide string using MultiByteToWideChar with CP_UTF8. Sets text with SetWindowTextW. Returns 1 on success, 0 if rich text box not found.
This function replaces all existing content including formatting. Use for initial text setup or complete content replacement. Removes all rich text formatting (resets to plain text).
Sets the entire text content of a rich text box control, replacing any existing text. Searches gizmoMap for the rich text box ID. Converts input string from UTF-8 to wide string using MultiByteToWideChar with CP_UTF8. Sets text with SetWindowTextW. Returns 1 on success, 0 if rich text box not found.
This function replaces all existing content including formatting. Use for initial text setup or complete content replacement. Removes all rich text formatting (resets to plain text). For adding text while preserving existing content and format, use bgiAppendRichText. For formatted text, set text first, then select text range with bgiSetRichTextSelection and apply format with bgiSetRichTextFormat. Supports UTF-8 encoding for international characters and emojis.