bgiGetFocusedCanvas

Category: BGI GUI

Syntax:

bgiGetFocusedCanvas:Int()



Returns

Int



Summary

Gets which canvas has the keyboard focus, as of the last sysUpdateEvents. A canvas takes the focus when clicked.

Takes no parameters. While canvases exist, inpGetMouseX/Y and the mouse speeds report the mouse only while the active canvas is the focused one (0 otherwise), as on Windows.

Returns the canvas ID, -1 if the main graphics window has it, or 0 if neither does.

View detailed documentation online



Example

;No example implemented yet


BambooBasic © 2026 Michael Denathorn