bgiSetWindowEnabled

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

win Int
enable Int

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.

Example

Example.bam
; No example implemented yet