bgiDestroyGizmo

Destroys and removes a gizmo control from memory. Takes gizmo (Int). Returns 1 on success, 0 if gizmo not found.

BGI GUI

Parameters & Returns

Parameters

gizmo Int

Returns

Int

Quick Summary

Destroys and removes a gizmo control from memory. Takes gizmo (Int). Returns 1 on success, 0 if gizmo not found.

Technical Exegesis...

Destroys and removes a gizmo control, freeing its resources. First attempts to destroy as canvas with bgiTryDestroyCanvas (canvases use shared ID space but separate tracking). If not a canvas, searches gizmoMap for the gizmo ID. If found and hWnd is not NULL, calls DestroyWindow to destroy the Windows control. Removes entry from gizmoMap with erase. Returns 1 on success, 0 if gizmo not found.

This function permanently removes a control and frees its resources.

Example

Example.bam
; No example implemented yet