On 2006-07-27, at 10:52 PM, Brian Rathbone wrote:

Justin Elliott wrote:

In RB 2006 Rel 3, how can I move a global floating window to a second
display on Mac OS X 10.4.7?

How can I specify that a window gets display on a particular display? The
window.placement property is read-only.

This is from the LR on 5.5.5:

 Dim myscreens as Integer
 myscreens=ScreenCount
 If (myscreens=1) then
   MsgBox "You've only got one monitor. What's the problem?"
 else
   MsgBox "You've got "+Str(myscreens)+" screens!"
 end if
I can move my window to the lefthand side of my second screen like this:

 if screencount = 2 then
   //screen(0) is the first screen
   self.left = screen(1).left
 end

hth,

Brian



 if screencount = 2 then
   //screen(0) is the first screen
   self.left = screen(1).left
 end


On (at least) OS X this is dangerous to use, because 'screencount' is NOT screencount, it is 'graphich cards count') So if the user have two graphics card but only one monitor connected, the code fails.

Sven E


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to