Resolution Independence

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

Post Reply
maxs
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 421
Joined: Sat Jun 24, 2006 12:02 am
Contact:

Resolution Independence

Post by maxs » Sun Dec 21, 2014 5:28 pm

SO has this been implemented yet?

If we hit just £7,000 over our target we can add Resolution Independence. That means seamless support for variable screen densities and display resolutions. Perfect for today's multitude of device form factors, screen resolutions and retina displays.

You'll be able to set the design resolution of your app so that it scales appropriately when displayed on a device with a higher screen resolution. You'll also be able to design your app at a single size and have it scale appropriately depending on the screen size automatically. Your apps will look great with far less effort.

This feature also gives us identical graphics rendering on all platforms, alpha channel support for patterns and the ability to render images on the server platform.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Resolution Independence

Post by jacque » Mon Dec 22, 2014 4:33 pm

Yes, it's been done for a while now. See "fullscreenmode" in the dictionary for starters, and follow all the "see also" suggestions from there.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

maxs
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 421
Joined: Sat Jun 24, 2006 12:02 am
Contact:

Re: Resolution Independence

Post by maxs » Mon Feb 09, 2015 1:00 am

This command: set the fullscreenmode of this stack to "exactFit" does nothing.

My app has been rejected from the app store 4 times because the images will not resize to fit the screen for iphone 4.

Also, I tested it on the simulator, same thing. The debugger tells me that my Fullscreenmode is "exactfit", but nothing happens.

Does this thing even work?

Max

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Resolution Independence

Post by Simon » Mon Feb 09, 2015 1:35 am

Hi Max,

Code: Select all

on preOpenStack
set the fullscreenMode of this stack to "exactFit"
end preOpenStack
Are you saying that does nothing for you on the device?

Simon
edit;
Oooops, I should read more carefully :oops:
I guess you are.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

maxs
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 421
Joined: Sat Jun 24, 2006 12:02 am
Contact:

Re: Resolution Independence

Post by maxs » Mon Feb 09, 2015 2:16 am

It does nothing nowhere, nohow.
Not on a Mac, IOS or simulator.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Resolution Independence

Post by Simon » Mon Feb 09, 2015 2:35 am

hmmmm....
I just tested this with LC 7.0.2 (rc1) and 6.7.2 (rc2) and it is working for me (only tested on Android).
Which version of liveCode are you using?
exactFit_test.zip
LC 7.0.2 (rc1)
(1.25 KiB) Downloaded 185 times
You'll see the circle turn into an oval on a device.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

maxs
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 421
Joined: Sat Jun 24, 2006 12:02 am
Contact:

Re: Resolution Independence

Post by maxs » Mon Feb 09, 2015 4:30 am

Si Simon

Yes, it does work on my simulator too.

How curious the exact same code does nothing in my stacks.

Thanks for taking the time to check this out for me, and building the sample. I'm at least hopeful now.

Max

harper58
Posts: 22
Joined: Tue Dec 16, 2014 7:58 pm

Re: Resolution Independence

Post by harper58 » Tue Apr 07, 2015 12:04 am

In Android 5.1 and probably other platforms, the preopenstack handler listed above needs to be in the script of card 1, not in the stack script where it would make sense.

Post Reply