Enables or disables a window.
Takes win (Int) and enable (Int).
Returns 1 on success, 0 if window ID not found.
BGI GUI
Parameters & Returns
Parameters
winInt
enableInt
Returns
Int
Quick Summary
Enables or disables a window.
Takes win (Int) and enable (Int).
Returns 1 on success, 0 if window ID not found.
Technical Exegesis...
Sets the enabled state of a BGI window. Searches gizmoMap for the window ID. If enable is non-zero (true), calls EnableWindow with TRUE and sets isEnabled=true. If enable is zero (false), calls EnableWindow with FALSE and sets isEnabled=false. Calls UpdateWindow to refresh the window appearance after the state change. Returns 1 on success, 0 if window ID not found.
Enabled windows can receive keyboard and mouse input. Disabled windows appear grayed out and ignore user interaction.
Sets the enabled state of a BGI window. Searches gizmoMap for the window ID. If enable is non-zero (true), calls EnableWindow with TRUE and sets isEnabled=true. If enable is zero (false), calls EnableWindow with FALSE and sets isEnabled=false. Calls UpdateWindow to refresh the window appearance after the state change. Returns 1 on success, 0 if window ID not found.
Enabled windows can receive keyboard and mouse input. Disabled windows appear grayed out and ignore user interaction. Useful for preventing interaction with windows during background operations or when certain conditions aren't met. The enabled state persists until changed again. Use bgiIsWindowEnabled to check current state.