bgiGetGizmoX

Gets the X coordinate (horizontal position) of a gizmo. Takes gizmo (Int). Returns stored x value from CGizmo structure on success, -1 if gizmo not found.

BGI GUI

Parameters & Returns

Parameters

gizmo Int

Returns

Int

Quick Summary

Gets the X coordinate (horizontal position) of a gizmo. Takes gizmo (Int). Returns stored x value from CGizmo structure on success, -1 if gizmo not found.

Technical Exegesis...

Gets the X coordinate (horizontal position) of a gizmo control. Searches gizmoMap for the gizmo ID. Returns stored x value from CGizmo structure on success, -1 if gizmo not found.

This function retrieves the control's horizontal position in pixels, relative to its parent window's client area. Returns the value set during creation or via bgiSetGizmoLayout. Use for querying control positions, calculating relative layouts, or collision detection. Returns -1 for invalid gizmo IDs.

Example

Example.bam
; No example implemented yet