bgiGetGizmoWidth

Gets the width of a gizmo control. Takes gizmo (Int). Returns stored width value from CGizmo structure on success, -1 if gizmo not found.

BGI GUI

Parameters & Returns

Parameters

gizmo Int

Returns

Int

Quick Summary

Gets the width of a gizmo control. Takes gizmo (Int). Returns stored width value from CGizmo structure on success, -1 if gizmo not found.

Technical Exegesis...

Gets the width of a gizmo control in pixels. Searches gizmoMap for the gizmo ID. Returns stored width value from CGizmo structure on success, -1 if gizmo not found.

This function retrieves the control's horizontal size in pixels. Returns the value set during creation or via bgiSetGizmoLayout. Use for calculating layouts, spacing controls, or determining control dimensions. Returns -1 for invalid gizmo IDs. Width does not include window borders or decorations.

Example

Example.bam
; No example implemented yet