bgiSetWindowVisibility

Shows or hides a window. Takes win (Int) and visible (Int). Returns 1 on success, 0 if window ID not found.

BGI GUI

Parameters & Returns

Parameters

win Int
visible Int

Returns

Int

Quick Summary

Shows or hides a window. Takes win (Int) and visible (Int). Returns 1 on success, 0 if window ID not found.

Technical Exegesis...

Sets the visibility state of a BGI window. Searches gizmoMap for the window ID. If visible is non-zero (true), calls ShowWindow with SW_SHOW and sets isVisible=true. If visible is zero (false), calls ShowWindow with SW_HIDE and sets isVisible=false. Calls UpdateWindow to refresh after the state change. Returns 1 on success, 0 if window ID not found.

Visible windows are shown on screen. Hidden windows exist but are not displayed and cannot be interacted with (even if enabled).

Example

Example.bam
; No example implemented yet