bgiGetRichTextBoxText

Gets the plain text content of a rich text box control. Takes richTextBoxID (Int). Returns empty string if zero.

BGI GUI

Parameters & Returns

Parameters

richTextBoxID Int

Returns

String

Quick Summary

Gets the plain text content of a rich text box control. Takes richTextBoxID (Int). Returns empty string if zero.

Technical Exegesis...

Retrieves the entire text content of a rich text box as a plain string (without formatting). Searches gizmoMap for the rich text box ID. Gets text length with GetWindowTextLengthW, returns empty string if zero. Allocates wide character buffer, retrieves text with GetWindowTextW. Converts wide string to UTF-8 using WideCharToMultiByte with CP_UTF8. Stores result in static buffer (max 65536 bytes). Returns UTF-8 string on success, empty string if rich text box not found.

Example

Example.bam
; No example implemented yet