How to get screen size and resolution

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
daryl
Posts: 47
Joined: Mon Apr 29, 2013 11:43 pm

How to get screen size and resolution

Post by daryl » Thu May 30, 2013 5:23 pm

Hi Folks,

I am trying to figure out if there is any way to determine the screen size and resolution. I have been looking through the documentation but have not been able to find any details on this. I have had a look at the platform, environment, processor, machine and systemVersion functions, and am wondering if there might be others I've missed that might be useful for determining the screen size. I want to write an application that will scale from smartphones to the desktop.

Any help would be greatly appreciated.

Thanks,

Daryl

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: How to get screen size and resolution

Post by mwieder » Thu May 30, 2013 5:27 pm

Try the screenrect.

daryl
Posts: 47
Joined: Mon Apr 29, 2013 11:43 pm

Re: How to get screen size and resolution

Post by daryl » Thu May 30, 2013 5:45 pm

Hi MWieder, that is just what I was looking for.

Regards,

Daryl

Post Reply