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
winInt
visibleInt
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).
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). Useful for dialog workflows where windows are created once but shown/hidden as needed. The visibility state persists until changed again. Use bgiIsWindowVisible to check current state.