sysGetMonitors

Category: System

Syntax:

sysGetMonitors:Int()



Returns

Int



Summary

Returns how many monitors are attached.

Takes no parameters.

Returns the monitor count. 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 count:Int = sysGetMonitors()
For n:Int = 0 To count - 1
	Print ToString(n) & ": " & sysGetMonitorString(n) & "  " & _
	      ToString(sysGetMonitorWidth(n)) & " x " & ToString(sysGetMonitorHeight(n))
Next

BambooBasic © 2026 Michael Denathorn