Category: BGI GUI
Syntax:
bgiCreateWindow:Int(sTitle:String, iWidth:Int, iHeight:Int)
Int
Creates a new BGI window of fixed size, centred on the screen.
Takes sTitle (String), iWidth (Int) and iHeight (Int).
Returns the window's gizmo ID on success, 0 on failure.
In this edition the size is the inside of the window - the area controls
are placed in. On Windows it is the outside, frame and title bar included,
which leaves the inside some 16 by 39 pixels smaller; here the title bar and
frame are added by the desktop, so a layout written for Windows has a little
room to spare rather than less. A menu bar (bgiUpdateWindowMenu) goes above
that area, so control positions still start below it.
bgiInitBGI is not required first: without it the window uses the desktop's
font.
View detailed documentation online
;No example implemented yet
BambooBasic © 2026 Michael Denathorn