Window position management

Terry Judd tsj at
Sat Apr 18 02:03:03 EDT 2009

Checkout the screenrects function in the dictionary. You should be able to
use it to see if your window rect is within the working rect of any active
monitor. If it isn't then I'd set the topleft of the window to a default


On 18/04/09 3:29 PM, "Bill Vlahos" <bvlahos at> wrote:

> My application saves the position of the window the last time it was
> saved. This works great as long as the screen sizes and positions
> don't change. For example, if the laptop is connected to an external
> monitor and the window position is saved while it is on the external
> monitor but the next time the program opens the external monitor isn't
> plugged in.
> How do people handle widow position management when the saved position
> isn't available?
> Bill Vlahos
> _______________________________________________
> use-revolution mailing list
> use-revolution at
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:

More information about the use-livecode mailing list