bgiGetGizmoText

Gets the text content of a gizmo control. Takes gizmo (Int). Returns c_str().

BGI GUI

Parameters & Returns

Parameters

gizmo Int

Returns

String

Quick Summary

Gets the text content of a gizmo control. Takes gizmo (Int). Returns c_str().

Technical Exegesis...

Gets the text content of a gizmo control. Searches gizmoMap for the gizmo ID. For status bars (GIZMO_STATUSBAR), sends SB_GETTEXTLENGTH to get length (LOWORD), allocates buffer, sends SB_GETTEXT for part 0, stores in static string, returns c_str(). For other gizmos, calls GetWindowTextLength to get length, allocates buffer, calls GetWindowTextA to retrieve text, stores in static string, returns c_str(). Returns empty string if zero length or gizmo not found.

Example

Example.bam
; No example implemented yet