Upper right hand corner or bottom right hand corner of screen

Scott Rossi scott at tactilemedia.com
Sat May 24 21:01:37 CEST 2014


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





More information about the use-livecode mailing list