bgiGetRichTextLineText

Gets the text content of a specific line by line number. Takes richTextBoxID (Int) and lineNumber (Int). Returns empty string if -1 (invalid line).

BGI GUI

Parameters & Returns

Parameters

richTextBoxID Int
lineNumber Int

Returns

String

Quick Summary

Gets the text content of a specific line by line number. Takes richTextBoxID (Int) and lineNumber (Int). Returns empty string if -1 (invalid line).

Technical Exegesis...

Retrieves the text content of a specific line from a rich text box by 0-based line number. Searches gizmoMap for the rich text box ID. Sends EM_LINEINDEX with lineNumber to get starting character index, returns empty string if -1 (invalid line). Sends EM_LINELENGTH with character index to get line length, returns empty if zero. Prepares static buffer (65536 bytes) with first WORD set to 65535 (buffer size requirement for EM_GETLINE). Sends EM_GETLINE to retrieve line text, null-terminates result.

Example

Example.bam
; No example implemented yet