Windows and screens...

David Bovill david at openpartnership.net
Sat Jul 7 07:29:58 CDT 2007


Thanks Eric - that would look like the problem. from the docs:

The value of the windowBoundingRect is not updated automatically when you
> change the screen resolution or when you move items such as the Windows task
> bar. For example, if the windowBoundingRect is set to 0,0,640,480, it is not
> changed if you change the screen resolution to 1024x768. If you change the
> screen settings after starting up the application, make sure the value of
> the windowBoundingRect property is still appropriate.
>

Also it looks like windowBoundingRect is not copatible with the new multiple
monitor support (ie screenrects) - so you cannot specify the
windowBoundingRect to work appropriately on the different screens.... I
guess there could be a front "preopenstack" script that detected whcih
screen a stack is about to open on?

On 07/07/07, Eric Chatonet <eric.chatonet at sosmartsoftware.com> wrote:
>
> Hi David,
>
> Le 6 juil. 07 à 20:29, David Bovill a écrit :
>
> > If I change screen dimensions or arrangement on a second monitor
> > (at least
> > on OSX) Rev behaves very differently to other applications. Stacks
> > cannot be
> > positioned properly and jump around. Specifically if the screen
> > arrangement
> > is one in which the top of the second screen is above the top of
> > the main
> > screen - any stacks positioned on the second screen cannot be
> > placed above
> > the line of the top of the main screen - jumping down. Next if you
> > make
> > changes to the screen arrangement so that the larger second screen
> > aligns
> > with the top of the main screen (and so extends below), you can
> > place and
> > resize the stack using almost the entire second screen - but not
> > using the
> > to 20 or so pixels (ie the same area that would have the OSX menu
> > bar if it
> > were active on the second screen).
>
> Probably you could have a look at the screenRects property (2.7 and
> later) and, above all, set the windowBoudingRect in order to fit your
> needs:
> In the IDE it's set to not allow a window to open overlapping the
> 'revMenubar' stack.
> set the windowBoundingRect to the screenRect before opening a window
> the size of which is the same that the screen is a way to go.
> Another possibility is to set the loc of the stack to the screenLoc
> in preOpenstack.
>
> Best regards from Paris,
> Eric Chatonet.
> ----------------------------------------------------------------
> Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
> Email: eric.chatonet at sosmartsoftware.com/
> ----------------------------------------------------------------
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list