Okay, I know that this post is rather old, but hey, I don't look at all posts over here... ;)
At least there is a solution for Windows. Import DesktopExtension module and use DesktopX(0) and DesktopY(0) to retreive coords of the primary display.
To confirm, that the secondary display is left or on top of the primary:
At least there is a solution for Windows. Import DesktopExtension module and use DesktopX(0) and DesktopY(0) to retreive coords of the primary display.
Import chaos.desktopext Local X:Int = DesktopX(0) + (DesktopWidth(0)/2) - 100 'use 0 to enshure primary display Local Y:Int = DesktopY(0) + (DesktopHeight(0)/2) - 100 'use 0 to enshure primary display Local Window:TGadget = CreateWindow ("hello", X, Y, 200, 200)
To confirm, that the secondary display is left or on top of the primary:
Import chaos.desktopext For Local i:Int = 0 To DesktopCount () Print "Display "+i+" is at position "+DesktopX(i)+","+DesktopY(i) Next