bgiCreateWindow

Creates a new BGI window with fixed size. Takes sTitle (String), iWidth (Int), and iHeight (Int). Returns the window ID on success, 0 on failure.

BGI GUI

Parameters & Returns

Parameters

sTitle String
iWidth Int
iHeight Int

Returns

Int

Quick Summary

Creates a new BGI window with fixed size. Takes sTitle (String), iWidth (Int), and iHeight (Int). Returns the window ID on success, 0 on failure.

Technical Exegesis...

Creates a new GUI window using the BGI_WINDOW window class. Registers the window class if not already registered (CS_DBLCLKS style, COLOR_BTNFACE+1 background). Creates window with WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | WS_VISIBLE | WS_CLIPCHILDREN style (fixed size, no resize, but with close button and menu support). WS_CLIPCHILDREN prevents painting over child controls like WebView2. Centers the window on screen with CenterWindow, shows it with SW_SHOW.

Example

Example.bam
; No example implemented yet