Multiple Monitors and MacOS X

BlitzMax Forums/BlitzMax GUI Programming/Multiple Monitors and MacOS X

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

This is my sample Code:

Import chaos.desktopext
Import maxgui.drivers

Print desktopcount()
For Local i:Int = 0 To DesktopCount ()
   Print "Display "+i+" is at position "+DesktopX(i)+","+DesktopY(i)+","+DesktopWidth(i)+","+Desktopheight(i)
Next
Local Xp:Int = DesktopX(0) + (DesktopWidth(0)) 'use 0 to enshure primary display
Local Yp:Int = DesktopY(0) + (DesktopHeight(0)) 'use 0 to enshure primary display
Local Windowp:TGadget = CreateWindow ("hello", Xp, Yp, 100, 100)

Local Xs:Int = DesktopX(1) + (DesktopWidth(1)) 'use 0 to enshure primary display
Local Ys:Int = DesktopY(1) + (DesktopHeight(1)) 'use 0 to enshure primary display
Local Windows:TGadget = CreateWindow ("hello", Xs, Ys, 100, 100)


Delay 10000



First i get the screen resolution of the primary Monitor
after that the screen resolution of the secoundary Monitor
then i will open a window on monitor 1 and on monitor 2, but it open both windows on the primary monitor.

Any idea?