Best scale way?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Best scale way?

Post by DevBoyLars » Mon Feb 17, 2014 8:57 am

Hi there,
how do you handle multiple platforms like iPhone 5 and any iPad to get the best results without cutting the screen or black borders?

Autoscale seems to be nice, but how can this be useful, if the IDE gives no help for different screensizes?

So my question is: How do you handle it in the latest LiveCode 6.x if you want to build an App which should be run on such as iPhone 5 and any iPad (so devices which has different screen-proportions)?

Thank you :)

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: Best scale way?

Post by DevBoyLars » Mon Feb 17, 2014 8:17 pm

No one got an idea or can tell me how to handle this?

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

Re: Best scale way?

Post by Simon » Tue Feb 18, 2014 12:02 am

OK, I'll bite... :)
Hi DevBoyLars,
I take it you've seen this
http://newsletters.livecode.com/november/issue162/
The Make my app scale and Screen Densities.

The two iPads are easy but adding the iPhone 5 is the problem. If you don't want borders or padding then you would have to re-layout your app depending on "platform" and "mobilePixelDensity". (edit: maybe not with the density support)
You could use the "splash screen" approach with 2 stacks and launch the one you want after checking the platform.

I'm not really clear on your point of IDE support.

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

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: Best scale way?

Post by DevBoyLars » Tue Feb 18, 2014 12:08 am

Wow, how bad is that? So I've still build a stack for iPhone 4/4S, one for iPhone 5 and one for the iPads (because I don't want to have a mega big tab-bar)?

So where is the use of the 'cool' scale-feature in 6.5? oO

The only way this would be helpfull is, if I can select an object and tell LiveCode that this Object has to scale proportionally. But this isn't possible -.-

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

Re: Best scale way?

Post by Simon » Tue Feb 18, 2014 12:15 am

mega big tab-bar
I haven't done the maths yet but is it mega big?

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

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: Best scale way?

Post by DevBoyLars » Tue Feb 18, 2014 12:18 am

Yes, it is much bigger as it should be on the iPad

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: Best scale way?

Post by DevBoyLars » Tue Feb 18, 2014 12:27 am

Look here:
iPhone.png
iPhone
iPad.png
iPad
iPad_Retina.png
iPad (Retina)


set to "exactFit"

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

Re: Best scale way?

Post by Simon » Tue Feb 18, 2014 12:32 am

Ok 73 px and 56 px padding is a lot.
But making two stacks that perform the same shouldn't be that difficult?
aspect ratio 71:40... thanks Apple.

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

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: Best scale way?

Post by DevBoyLars » Tue Feb 18, 2014 12:43 am

But it's not only two.. These would mean that the new scale-feature in 6.5 is absolutely useless, because you've always to build a stack per device/screensize.

So what is the use of this new feature!?

Just let's use this case: An App with a tab-bar and 5 buttons on it. That means I need... for iPhone, iPhone 5 and iPad...

5 stacks x 3 devices = 15 stacks only for Apple Devices - I don't want to think about Android x_x

Very frustrating, that I've still to work with very old(!) tools like altMobileResizer, which is very cool but doesn't work with MobGUI -.-

But you can tell single objects to resize OR resize proportionally, which resolves the problem.

This is a very bad mobile platform support by LiveCode and truly not what a lot of people hoped to get as RunRev announced 6.x on KickStarter :(

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

Re: Best scale way?

Post by Simon » Tue Feb 18, 2014 1:19 am

5 stacks x 3 devices = 15 stacks only for Apple Devices
I'm really unclear on this point?
It's just aspect ratio's you are concerned with. Maybe I'm overlooking something.


I haven't a problem with letterbox so the resolution stuff in liveCode is great for me.

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

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: Best scale way?

Post by DevBoyLars » Tue Feb 18, 2014 2:59 pm

Maybe I'm a little bit to stupid!? :D

What I want to do is:

Build an App with a tab-bar and 5 icons on it. So this tab-bar should appears correctly on an iPhone 4/4S, iPhone 5, all iPads and Android-devices.

If I use 'exactFit' the tab-bar will stretch on iPhone 5 and got the double size as it should be on any iPad.

Ok, now you say I could build a stack per device, right? But this would mean I've to build 5 tabs per device (aspect ratio alone would work, just look at the tab-bar on iPad with 'exactFit').

'letterBox' isn't useful, because the tab-bar would hang 'in the air'

If I use altMobileResizer, which is really great, I can't use MobGUI, which is also very useful.

So my question is: Is it really the only way to build a stack per device/AR or is there another/better way to build a simple App with a tab-bar for different devices? :)

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

Re: Best scale way?

Post by jacque » Tue Feb 18, 2014 10:30 pm

I have never created more than one stack just to solve a resizing problem. The new scaling features should work fine, but if you want to adjust the final appearance, you can use a resizeStack handler to reposition some of the objects. That's how we used to do it before the scaling features were available (and that's what altResizer is doing too.)

I don't see anything wrong with your "exactFit" images, they look correct to me. What would you like it to do instead? There are other scaling options available if exactFit isn't what you want.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

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

Re: Best scale way?

Post by Simon » Tue Feb 18, 2014 10:44 pm

...they look correct to me...
I think it's the earth is oblong in the iPad versions and round on the iPhone.

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

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

Re: Best scale way?

Post by jacque » Tue Feb 18, 2014 11:02 pm

I see...it's pretty subtle. That would probably be due to using a non-square image. Cropping the image to be exactly square would fix it.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: Best scale way?

Post by DevBoyLars » Wed Feb 19, 2014 8:06 am

jacque wrote:That would probably be due to using a non-square image. Cropping the image to be exactly square would fix it.
I don't think that this would help much, because the screen aspect-ratio changes between iPad & iPhone 5

Post Reply