Screen Position (RESOLVED)

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
ChrisM
Posts: 24
Joined: Sat Mar 29, 2014 3:11 pm

Screen Position (RESOLVED)

Post by ChrisM » Fri Feb 17, 2017 8:54 am

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?
Last edited by ChrisM on Fri Feb 17, 2017 9:51 am, edited 1 time in total.

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am
Location: Bordeaux, France

Re: Screen Position

Post by Dixie » Fri Feb 17, 2017 9:22 am

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

ChrisM
Posts: 24
Joined: Sat Mar 29, 2014 3:11 pm

Re: Screen Position

Post by ChrisM » Fri Feb 17, 2017 9:51 am

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

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”