LC 9.6 & fullscreenmode & splashscreen

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

simon.schvartzman
Posts: 665
Joined: Tue Jul 29, 2014 12:52 am

LC 9.6 & fullscreenmode & splashscreen

Post by simon.schvartzman » Sun May 31, 2020 8:45 pm

Hi all, I have been successfully using

Code: Select all

set the fullscreenmode of this stack to "showAll"
but now when using LC 9.6 rc2 I'm getting the annoying black bars at the top and the bottom of the iPhone X.

By reading the forum and the quality board it seems the fix is related to loading the proper images to the standalone Splash Screens Launch Images but I can figure out which size should they be and also if this is the only thing I should do.

Can you please help? I guess many of us with Apps on the Apple Store are going to face the same problem

Many thanks, as always
Simon
________________________________________
To ";" or not to ";" that is the question

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: LC 9.6 & fullscreenmode & splashscreen

Post by FourthWorld » Sun May 31, 2020 8:53 pm

That's how fullScreenMode works: it doesn't provide object-specific placement like we see in most apps, but it does provide a quick and easy to way to have a layout resized for different screen sizes and ratios for those apps which can benefit from such a strategy.

By it's nature fullScreenMode can only stretch, shrink, crop, pad, or some combination thereof.

There are modes that will crop rather than pad, though - you can review them all visually in this Lesson to pick the one most appropriate for your app:
http://lessons.livecode.com/m/15262/l/5 ... ll-devices
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

simon.schvartzman
Posts: 665
Joined: Tue Jul 29, 2014 12:52 am

Re: LC 9.6 & fullscreenmode & splashscreen

Post by simon.schvartzman » Sun May 31, 2020 9:25 pm

Thanks Richard, maybe I didn't make myself clear (it wouldn't be the first time).

What I'm trying to figure out is what has changed with LC 9.6 (and how to fix it) as everything was working OK with the previous releases and I haven't changed anything in my code.
Simon
________________________________________
To ";" or not to ";" that is the question

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: LC 9.6 & fullscreenmode & splashscreen

Post by FourthWorld » Sun May 31, 2020 10:39 pm

Thanks for the clarification. If the fullScreenMode you'd been using was satisfactory with earlier versions, it may well be that newer iOS changes have affected that behavior. And it may be related to the splash screen or storyboard requirements; can't say for sure, but with changes specific to a given release the important stuff is usually outlined in the Release Notes accompanying the version. If you don't find what you need there I'll see if I can turn up why it was left out, and where it can be found.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

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

Re: LC 9.6 & fullscreenmode & splashscreen

Post by jacque » Mon Jun 01, 2020 6:05 pm

Is the problem only on the splash screen? That's what changed in the final release. If so, splash screens are shown by the OS before the stack loads and aren't affected by fullscreenmode. What you do is set the backgroundcolor of the storyboard to the same color as the background of your splash image and borders around the blank areas won't be black.

For the sizes, choose the largest splash you made for the old method, the smallest, and one in between.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

simon.schvartzman
Posts: 665
Joined: Tue Jul 29, 2014 12:52 am

Re: LC 9.6 & fullscreenmode & splashscreen

Post by simon.schvartzman » Mon Jun 01, 2020 8:35 pm

Hi Jacque, the problem is not with with the splash screen but with the card itself as can be seen on the attached screens. I haven't set the launch images yet...

LC 9.5.1
screenLC951.png
LC 9.6.0
screenLC960.png
Any hints?

Thanks
Simon
________________________________________
To ";" or not to ";" that is the question

bwmilby
Posts: 462
Joined: Wed Jun 07, 2017 5:37 am
Contact:

Re: LC 9.6 & fullscreenmode & splashscreen

Post by bwmilby » Tue Jun 02, 2020 2:23 am

I think you are seeing this because you have not specified an image for the splash. In the old way, the app would only recognize screen sizes where an image was included. Try including any of your old splash images and see if it is better. My thinking is that it fell back to the default size which gets you the given aspect ratio.

simon.schvartzman
Posts: 665
Joined: Tue Jul 29, 2014 12:52 am

Re: LC 9.6 & fullscreenmode & splashscreen

Post by simon.schvartzman » Tue Jun 02, 2020 2:59 am

Hi Brian, many thanks for your prompt answer and suggestion. Still not joy...

scr2.jpg
scr1.jpg
Simon
________________________________________
To ";" or not to ";" that is the question

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

Re: LC 9.6 & fullscreenmode & splashscreen

Post by jacque » Tue Jun 02, 2020 4:32 pm

When the screen ratio doesn't fit the stack size ratio you see black bars like that. If you set the background color of the stack or the card the blank areas will use that color. In this case it looks like you'd need to set it to the default gray.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

simon.schvartzman
Posts: 665
Joined: Tue Jul 29, 2014 12:52 am

Re: LC 9.6 & fullscreenmode & splashscreen

Post by simon.schvartzman » Tue Jun 02, 2020 4:52 pm

Thanks Jacque I will try as you say and report back but meanwhile I wonder why it didn't happen with LC 9.5.1, is this a new "feature"?
Simon
________________________________________
To ";" or not to ";" that is the question

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

Re: LC 9.6 & fullscreenmode & splashscreen

Post by jacque » Tue Jun 02, 2020 5:22 pm

It's not new so my suggestion may not work, but whenever I see a screen like that it's always been the lack of a background color. I don't know why 9.5.1 didn't do the same thing, it always acted that way in my apps too.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

bwmilby
Posts: 462
Joined: Wed Jun 07, 2017 5:37 am
Contact:

Re: LC 9.6 & fullscreenmode & splashscreen

Post by bwmilby » Tue Jun 02, 2020 5:34 pm

Sorry that my suggestion failed. That makes me want to dig deeper. I have not tried my mobile demo stack with the new launch screen yet. From the screen shot, it is weird. You can see that the scale is slightly different in addition to the black borders.

simon.schvartzman
Posts: 665
Joined: Tue Jul 29, 2014 12:52 am

Re: LC 9.6 & fullscreenmode & splashscreen

Post by simon.schvartzman » Tue Jun 02, 2020 6:44 pm

@jacque I tried setting the backgroundcolor of the stack and the card to gray and the black bars remain there :(

@bwmilby I wouldn't mind about the scale being different this is probably due to the way I grouped the screen shoots.

Next I will try to reproduce the behaviour on a simple stack and to be shared here (and maybe fill a bug report).

Many thanks for now
Simon
________________________________________
To ";" or not to ";" that is the question

simon.schvartzman
Posts: 665
Joined: Tue Jul 29, 2014 12:52 am

Re: LC 9.6 & fullscreenmode & splashscreen

Post by simon.schvartzman » Tue Jun 02, 2020 10:16 pm

I wasn't able to reproduce the issue in a simplest stack and therefore decided to open a bug report which can be found here

https://quality.livecode.com/show_bug.cgi?id=22766

Will see...
Simon
________________________________________
To ";" or not to ";" that is the question

bwmilby
Posts: 462
Joined: Wed Jun 07, 2017 5:37 am
Contact:

Re: LC 9.6 & fullscreenmode & splashscreen

Post by bwmilby » Tue Jun 02, 2020 11:01 pm

Did you try deleting the app from the phone/sim completely?

Post Reply