sysGetMonitor

Category: System

Syntax:

sysGetMonitor:Int()



Returns

Int



Summary

Returns the monitor currently in use, or the one a window would open on if there is no window yet.

Takes no parameters.

Returns the monitor number (zero-based). Can be called BEFORE b2dGraphics - a program choosing a monitor has no window yet.

Linux edition only - this function has no Windows counterpart, so it is not in the online documentation.



Example
Local m:Int = sysGetMonitor()
Print "Using monitor " & ToString(m) & ": " & sysGetMonitorString(m)

BambooBasic © 2026 Michael Denathorn