[sc-users] Multiple monitors and screenBounds

Andre Bartetzki andre at bartetzki.de
Sat Dec 9 23:37:28 PST 2006


Hello,


I have a problem with SCWindow.screenBounds

If I type and evaluate SCWindow.screenBounds in a text window on the main
screen I get   
Rect( 0, 0, 1440, 900 )

If I do that in a text window on my other screen I get
Rect( -1280, -124, 1280, 1024 )

- obviosly the bounds of that second monitor.


When I do the same with SwingOSC JSCWindow I always get the bounds of the
main screen regardless on which screen are the text windows.


Now, I have a class (for GUI stuff) that reads the screenbounds in its
*initClass method. The silly thing is, when I recompile the library the
screenbounds depends on which screen any top most document window is at the
moment of the library compilation!

Is there a way to specify the screen number or the main screen to
screenbounds ?  
Something like the coords 0 or 1 message to jit.display in Jitter ?



Andre


--------------------------------------------------
Andre Bartetzki 
http://www.bartetzki.de
mailto:andre at bartetzki.de

Tel   +49-(0)30-92375877
VoIP  +49-(0)30-38108677
Fax   +49-(0)30-38108678
UMS   +49-(0)941-599214065 (Voice, Fax, SMS)
Skype bartetzki

--------------------------------------------------




More information about the sc-users mailing list