bgiSetRichTextBoxText

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

richTextBoxID Int
text String

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

Example

Example.bam
; No example implemented yet