bgiClearRichTextBox

Clears all text content from a rich text box control. Takes richTextBoxID (Int). Returns 1 on success, 0 if rich text box not found.

BGI GUI

Parameters & Returns

Parameters

richTextBoxID Int

Returns

Int

Quick Summary

Clears all text content from a rich text box control. Takes richTextBoxID (Int). Returns 1 on success, 0 if rich text box not found.

Technical Exegesis...

Clears all text content from a rich text box control, leaving it empty. Searches gizmoMap for the rich text box ID. Sets text to empty wide string (L"") using SetWindowTextW. Returns 1 on success, 0 if rich text box not found.

This function removes all text and formatting from the rich text box, resetting it to an empty state. More efficient than bgiSetRichTextBoxText with empty string. Use for clearing chat logs, resetting editor content, or starting fresh. Removes all formatted content.

Example

Example.bam
; No example implemented yet