split screen on mobile

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

Post Reply
bamakojeff
Posts: 35
Joined: Tue Dec 06, 2022 6:53 pm

split screen on mobile

Post by bamakojeff » Tue Feb 24, 2026 11:43 pm

Has anyone done any work on how to make a mobile app properly use split screen?

I have a mobile app (Livecode 10) that works well on iOS and Android. It uses "the effective working screenrect" to get the size of the screen and resizes appropriately. "the effective working screenrect" gets the dimensions of the screen that you can draw on while excluding the status bars, notches, etc. In order for the app to work properly in split screen mode, however, it appears that you cannot use the screenrect as that always reports the actual screen, not the part of the screen that your app has been assigned. What I read says that you should use "the rect of this stack" as that way you will get the part of the screen it should occupy rather than the entire screen.

The problem I see is that "the rect of this stack" does NOT account for the areas of the screen that are already in use. So when I use this, scroll bars, status bars, etc. all hide parts of my app because the dimensions of the app include screen areas that are not usable. I've tried using a combination of screenrect and stack rect where I check if the screenrect is excluding parts of the stack rect and adjust the rect of the app accordingly. But I haven't hit upon the right combinations for it to play nice with split screens.

If anyone either knows to get the stack rect to account for the unusable areas on the mobile screen or knows a different way to properly size your app to the space allocated to it so it plays nice with split screens, I'd appreciate hearing about it.

Jeff

Post Reply