Hey everyone! I'm currently in the process of making an app that will mostly be for iOS systems. The question I had is about scaling. I'm currently making it in Windows, but I want to start testing it on an iPad soon. The only issue is I don't know how to make it scale to any size screen and still look 'right'. So, at the moment, if I just increase the size of the stack to the size of an iPad screen, I'll have to move everything else to make it not look empty. Is there an easy way to make everything scale properly and make it look good?
Many thanks
Stack scaling
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 135
- Joined: Thu Sep 13, 2012 10:25 pm
Re: Stack scaling
Check out fullscreenmode:
-----------------------
from the dictionary:
Examples:
set the fullscreenmode of this stack to empty
set the fullscreenmode of this stack to "noScale"
Use the fullscreenmode property to choose the most appropriate full screen scaling mode for the application.
Parameters:
empty - The stack is resized (not scaled) to fit the screen. (default) This is the existing behavior.
"exactFit" - Scale the stack to fill the screen. This stretches the stack if the aspect ratio of the screen does not match that of the stack.
"letterbox" - Scale the stack, preserving the aspect ratio, so all content is visible. Some blank space may remain if the screen and stack aspect ratios do not match.
"noBorder" - Scale the stack to fill the screen, preserving the aspect ratio. If the stack and screen aspect ratios do not match, the left / right or top / bottom extremes of the stack are not visible.
"noScale" - The stack is not scaled, but is centered on the screen instead.
"showAll" - Scale the stack preserving aspect ratio so all content within the stack rect is visible. Portions of the stack outside the stack rect will be visible if the scaled stack does not fit the screen exactly.
--------------------
It works great!
Joel
-----------------------
from the dictionary:
Examples:
set the fullscreenmode of this stack to empty
set the fullscreenmode of this stack to "noScale"
Use the fullscreenmode property to choose the most appropriate full screen scaling mode for the application.
Parameters:
empty - The stack is resized (not scaled) to fit the screen. (default) This is the existing behavior.
"exactFit" - Scale the stack to fill the screen. This stretches the stack if the aspect ratio of the screen does not match that of the stack.
"letterbox" - Scale the stack, preserving the aspect ratio, so all content is visible. Some blank space may remain if the screen and stack aspect ratios do not match.
"noBorder" - Scale the stack to fill the screen, preserving the aspect ratio. If the stack and screen aspect ratios do not match, the left / right or top / bottom extremes of the stack are not visible.
"noScale" - The stack is not scaled, but is centered on the screen instead.
"showAll" - Scale the stack preserving aspect ratio so all content within the stack rect is visible. Portions of the stack outside the stack rect will be visible if the scaled stack does not fit the screen exactly.
--------------------
It works great!
Joel
Re: Stack scaling
Hi Joel
Thanks for point that out, that looks super helpful! The only other question I have regarding this is how does that work with scaling all the buttons, and the font and all that? Is there any way Livecode can handle it so that it can just make everything fit perfectly on any screen size
?
Many thanks
Thanks for point that out, that looks super helpful! The only other question I have regarding this is how does that work with scaling all the buttons, and the font and all that? Is there any way Livecode can handle it so that it can just make everything fit perfectly on any screen size

Many thanks
-
- Posts: 135
- Joined: Thu Sep 13, 2012 10:25 pm
Re: Stack scaling
Sorry to take so long to get back to you. Have you tried it out yet? I find that it works quite well with most everything. Text size may take a bit of monkeying, but not much. Let me know how it goes.
Joel
Joel
Re: Stack scaling
Hi Joel
I have tried it, and it's working kinda well. The only issue I have with it is that most of the options for fullscreenmode don't make it fit except 2, and one stretches it out, while the other leaves a big gap at the top and bottom of the stack
. I guess I'll just have to make my stack taller to make it fit 
Michael
I have tried it, and it's working kinda well. The only issue I have with it is that most of the options for fullscreenmode don't make it fit except 2, and one stretches it out, while the other leaves a big gap at the top and bottom of the stack


Michael