Mobile screen sizes - another naive question

J. Landman Gay jacque at hyperactivesw.com
Thu Apr 9 14:09:17 EDT 2020


On 4/9/20 11:47 AM, Richard Gaskin via use-livecode wrote:
> Graham Samuel wrote:
> 
>  > Folks, yet again I don’t know where to look for an answer in the LC
>  > documentation.
>  >
>  > The issue is the enormous variety of screen sizes on smart phones. For
>  > example the iPhone XS Max has 1242 pixels width, the iPhone 5 has 640.
>  > And there are many many more before we even get to tablets…
>  >
>  > The question is, how do most of you tackle this, and does LC help?
>  > Obviously an object taking up a fixed number of pixels on one phone
>  > will look absurdly large or small on another one, or of course may not
>  > fit on the screen at all. Not all objects can be vector drawings, and
>  > the ones that are still have to be resized according to device
>  >
>  > Is there anything better than the obvious trick of resizing everything
>  > in sight when the app is being initialised, including substituting the
>  > more sensitive graphics from a library of appropriate sizes? Seems
>  > tedious.
> 
> Is it all that tedious?

Yes, unless you have a simple stack with only a few controls. If you have hundreds of objects, 
dealing with each of them individually, even if it's only one line that calls a handler, is a 
tedious time sink.

Graham, experiment with fullscreenMode, which automates most of the process. It isn't perfect 
and you'll need to make a few adjustments for different screen sizes, but it's much easier than 
trying to adjust for every possible screen ratio. LC implemented this specifically to take away 
the pain as much as possible.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com





More information about the use-livecode mailing list