[ANN] MobGUI themes

Roger Eller roger.e.eller at sealedair.com
Mon Jan 6 17:30:27 EST 2014


The "NoBorder" option, and "letterbox" are what I have been using most.  My
layout is 16:9 wide for my current tablet app.  I just have to keep objects
from being too close to the top and bottom so they don't get cropped when
the same app is running on a 4:3 device.  I would suggest a different stack
for phones so the objects can be large enough to be touch-friendly.

Here's what I have in preOpenStack for my 16:9 wide-screen app:

   put item 3 of the screenRect into tW
   put item 4 of the screenRect into tH
   put (tH/tW) into tScale
   if tScale > 0.6 then
      put "4:3" into tAspectRatio
      set the fullscreenmode of this stack to "letterbox"  -- shows thin
black bars at top and bottom (doesn't look bad to me)
   else
      -- assume wide-screen
      put "16:9" into tAspectRatio
      set the fullscreenmode of this stack to "noBorder"
   end if

This newsletter has a nice little diagram to show the affect of the
fullscreenmode options.

http://newsletters.livecode.com/november/issue162/newsletter1.html

~Roger


On Mon, Jan 6, 2014 at 3:48 PM, Mike Kerner <MikeKerner at roadrunner.com>wrote:

> Well, then maybe I don't understand.  When I build a layout for a certain
> size, and then put the app on a device that is larger, the controls all
> grow, even though the DPI is the same.  I believe the controls are supposed
> to remain a certain real-world size, not maintain a certain proportion of
> the screen.  Otherwise if, for instance, you develop for a 3.5" iphone 4
> and then put your app on a 4" iphone 5, the controls will all be taller
> than they were.  So what I'm trying to ask is whether I have to build three
> layouts for ios for landscape (it's three, now, right?), in order to
> maintain aspect ratios (and three for portrait), because the combination of
> MG and LC will result in controls resizing.
>
> So now take it to Android, where there are a multitude of screen sizes.  If
> you do a layout for one size, but the app is run on another size, what is
> LC going to do to MG's controls?
>
> I haven't messed with THIS version, but on the one prior to this, just
> resizing in MG caused ratios to go all over.  I'm just trying to make sure
> I understand how it works before I start (another) new project.
>
>
> On Mon, Jan 6, 2014 at 3:31 PM, Roger Eller <roger.e.eller at sealedair.com
> >wrote:
>
> > An issue with Android?  How so?  I have been using the fullscreenmode(s)
> in
> > 6.5.1 and find it easy to accommodate most Android screens.  The controls
> > auto-resizing is very helpful if the layout is planned carefully.
> >
> > ~Roger
> >
> >
> > On Mon, Jan 6, 2014 at 3:22 PM, Mike Kerner <MikeKerner at roadrunner.com
> > >wrote:
> >
> > > Just so I understand, with the way you have it set now, one would do
> the
> > MG
> > > layout dance for each orientation/size one is using, correct?  Granted,
> > on
> > > iOS there should only be three portrait and 3 landscape orientations to
> > > worry about (I think), but the LC auto-resizing would make the controls
> > > resize, too, which is more of an issue with Android.
> > >
> > >
> > > On Mon, Jan 6, 2014 at 7:07 AM, Roger Eller <
> roger.e.eller at sealedair.com
> > > >wrote:
> > >
> > > > Thanks John, and Thierry!
> > > >
> > > > ~Roger
> > > > _______________________________________________
> > > > use-livecode mailing list
> > > > use-livecode at lists.runrev.com
> > > > Please visit this url to subscribe, unsubscribe and manage your
> > > > subscription preferences:
> > > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > > >
> > >
> > >
> > >
> > > --
> > > On the first day, God created the heavens and the Earth
> > > On the second day, God created the oceans.
> > > On the third day, God put the animals on hold for a few hours,
> > >    and did a little diving.
> > > And God said, "This is good."
> > > _______________________________________________
> > > use-livecode mailing list
> > > use-livecode at lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
>
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>    and did a little diving.
> And God said, "This is good."
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list