Upper right hand corner or bottom right hand corner of screen

Magicgate Software - Skip Kimpel skip at magicgate.com
Sat May 24 15:19:34 EDT 2014


Works perfectly, thank you!

SKIP


On Sat, May 24, 2014 at 3:01 PM, Scott Rossi <scott at tactilemedia.com> wrote:

> The coordinates of one screen are pretty straightforward, but if you're
> making the utility for other users, you'd do well to take into account
> multiple monitor setups, menu bars, task bars, etc.  You could do
> something like "put the working screenRects into theList" which will place
> the dimensions of all connect monitors into the variable "theList".  I
> have two monitors, so I get this:
> 0,22,2560,1076
> 2560,-372,4240,678
>
> Then, if you want to place your stack at the topLeft of the main (system)
> screen, use the first two coordinates of the first line:
> set the topLeft of stack "My Utility" to 0,22
>
> If you want to place your stack at the bottomRight of the secondary
> screen, use the last two coordinates of the second line:
>
> set the bottomRight of stack "My Utility" to 4240,678
>
>
> Hope this helps.
>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
>
>
>
>
>
>
> On 5/24/14 11:44 AM, "Magicgate Software - Skip Kimpel"
> <skip at magicgate.com> wrote:
>
> >Good afternoon,
> >
> >I know how to center an application on the screen by using"set the loc of
> >this stack to the screenloc" but how do I position the application to the
> >upper right hand corner or bottom right hand corner of the screen instead?
> >
> >I am writing a utility app that I want to start "out of the way" instead
> >of
> >center screen.  I have never had a need for this before :)
> >
> >Your input and wisdom is ALWAYS appreciated!
> >
> >Thank you,
> >
> >SKIP
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the Use-livecode mailing list