Window position management

Terry Judd tsj at unimelb.edu.au
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
value.

Terry...


On 18/04/09 3:29 PM, "Bill Vlahos" <bvlahos at mac.com> 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 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