Page 1 of 1

Screen Position (RESOLVED)

Posted: Fri Feb 17, 2017 8:54 am
by ChrisM
Hi,

Im building a little Windows desktop app, but looking to place it at the bottom right of the screen above the taskbar, I can get it to open on my screen that way but need to it work across resolutions, does anyone know how to do this, or have a code snip that does this?

Re: Screen Position

Posted: Fri Feb 17, 2017 9:22 am
by Dixie

Code: Select all

on preOpenStack
   set the right of me to item 3 of the screenRect -20
   set the bottom of me to item 4 of the screenRect -20
end preOpenStack
dixie

Re: Screen Position

Posted: Fri Feb 17, 2017 9:51 am
by ChrisM
Dixie wrote:

Code: Select all

on preOpenStack
   set the right of me to item 3 of the screenRect -20
   set the bottom of me to item 4 of the screenRect -20
end preOpenStack
dixie
Thanks Dixie, that works perfectly