Hi,

> [rect(0,0,1152,870), rect(-1024,0,0,760)]
> I guess because the startup screen is on the right as opposed to
> left...then the second woulde be more like rect(1153, 0, 2176, 760) or
> something like that, right?
In fact it's the startup monitor but the main one (I don't remind how the m$
guys called it in english, but that's not the matter), your screen coords
are always given from the origin of your main monitor. If you still use the
same resolutions with the same monitors, but switch the main one, then your
DesktopRectList will return you the left one origin at 0,0, and the second
one at 1152,0.

>
> Is there any way to tell WHICH screen the projector is going to start up
> on? Will it always be the first in the desktoprectlist?
you can use a script I've already post which enables you to set the stage
rect and drawRect to the rect you want, which I've paste in the bottom of
this msg.
In this script I've placed a call to the setStageSize handler, using (the
DesktopRectList[(the DesktopRectList).count]) as a parameter, so your stage
start fullscreen on your last monitor. It's not matter to know if it's the
one which origin is the biggest... it's just a matter of list and priority.
For exemple my config return :
put the DesktopRectList
-- [rect(0, 0, 1152, 864), rect(1152, 0, 2304, 864)]
put the DesktopRectList[(the DesktopRectList).count]
-- rect(1152, 0, 2304, 864) -- the last in the list, independant from it's
coords

But I think you'll encounter a problem... the sprite locations are still set
from the origin, so you'll have to transform them on beginSprite...

You've asked for a way to set the screen where the projector starts up...
then you'll have to manage your sprites ;)
If you want to make the user choose it's monitor, just start a standard
movie where you ask the user to choose, and then start a MIAW using the
handlers below.

Hope it helps,
Sébastien

global grOriginalStageSize -- use by setStageSize & restoreStageSize
------------------------------------------
------------------------------------------
-- prepareMovie & stopMovie handlers -----
------------------------------------------
on prepareMovie
    -- save original config
    grOriginalStageSize = the stage.rect
    -- set the stage to full screen on the last monitor
    setStageSize (the DesktopRectList[(the DesktopRectList).count])
end -- prepareMovie
on stopMovie
    restoreStageSize
end
------------------------------------------
------------------------------------------
-- setStageSize --------------------------
------------------------------------------
on setStageSize (rDestRect)
    -- the next lines make the stage fit the rDestRect
    rRect = (the stage).rect
    rRect[1] = rDestRect[1] -- adjust left border
    rRect[2] = rDestRect[2] -- adjust top border
    rRect[3] = rDestRect[3] -- adjust right border
    rRect[4] = rDestRect[4] -- adjust bottom border
    -- set the new coords of stage.rect
    (the stage).rect = rRect
    (the stage).Drawrect = rRect
    updateStage
    -- the next 2 lines make the stage fullscreen with zoomed sprites
    -- (the stage).drawRect = the desktopRectList[1]
    -- (the stage).rect = the desktopRectList[1]
end
--------------------------------------------
--------------------------------------------
-- restoreStageSize ------------------------
--------------------------------------------
on restoreStageSize
    setStageSize (grOriginalStageSize) -- restore original stage size
end

 
______________________________________________________________________________
Vous avez un site perso ?
2 millions de francs à gagner sur i(france) !
Webmasters : ZE CONCOURS ! http://www.ifrance.com/_reloc/concours.emailif



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to