using LC apps with smaller monitors

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

using LC apps with smaller monitors

Post by adventuresofgreg » Thu Oct 23, 2014 4:14 pm

Hello: It seems that the most common monitor size now is 1366 x 768. If my app measures larger than 768, is there an easy way to automatically have a vertical scroll bar appear on the users app window?

I know that I can group the stacks objects together and then add a scroll bar to that group, but editing groups during development is always such a pain - right click on group, choose "edit group", then everything else on your stack dissappears - which is a drag because I'm constantly forgetting field and button names, etc.

Or perhaps there is a way to edit a stack with all groups appearing in an "ungrouped" mode - just for editing. Now that would be great!

Greg

adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

Re: using LC apps with smaller monitors

Post by adventuresofgreg » Thu Oct 23, 2014 4:27 pm

oh wow. oh wow. I've been writing code in this environment for decades (HyperCard, SuperCard, MetaCard, Revolution, LiveCode), and never knew about the menu option "select grouped controls". This changes my life!

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: using LC apps with smaller monitors

Post by Simon » Thu Oct 23, 2014 7:53 pm

Hi Greg,
It's not clear if you answered your initial question so I'll add something.
Don't forget about "scaleFactor", it isn't perfect (I think it has to do with graphics getting sub pixel positioning) but that with effective screenRect you can size the app for the display.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: using LC apps with smaller monitors

Post by [-hh] » Thu Oct 23, 2014 8:57 pm

Hey Simon, missed your crossing the 3000 posts line but it's still close to that.

Congratulations. And a virtual bunch of flowers for you.

Thank you.

Especially at my start here there were a lot of posts from you that helped me a lot.
flowers3000.jpg
Simon's jubilee bouquet
flowers3000.jpg (59.01 KiB) Viewed 6777 times
shiftLock happens

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: using LC apps with smaller monitors

Post by Simon » Thu Oct 23, 2014 9:09 pm

Thank you very much Hermann :D :D :D
I actually missed it as well!

Hope I actually do help people here, this forum has always helped me.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

Re: using LC apps with smaller monitors

Post by adventuresofgreg » Fri Oct 24, 2014 1:38 pm

Hi Simon. ScaleFactor must be new? I'm on 5.5.1 still.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: using LC apps with smaller monitors

Post by Simon » Fri Oct 24, 2014 2:34 pm

Hi adventuresofgreg,
Yes, it is fairly new.
Check out a community version of liveCode, 6.6.5. If you are on Windows, excuse any page transitions in the IDE, they are terrible.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

Re: using LC apps with smaller monitors

Post by adventuresofgreg » Fri Oct 24, 2014 3:47 pm

Hi Simon: I do have the community version, but don't use it because I thought there was some restriction on developing commercial apps on it? I was on an annual subscription with RunRev, but I'm not sure to what version that entitles me to upgrade to. If everything is working, I usually avoid the upgrades. Do you by chance know what version LC added the ScaleFactor?

Cheers,
Greg K

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

Re: using LC apps with smaller monitors

Post by FourthWorld » Fri Oct 24, 2014 4:18 pm

ScaleFactor was introduced in v6.6.

As for licensing, the Community Edition is licensed under GPLv3, so it can be used to distribute any works also released under that license.

But it's worth noting that the GPL is a distribution license, so when developing things that aren't distributed to others there's no requirement to share the source code.

In practical terms this means you can explore and create using the Community Edition, and would need a Commercial Edition license only when you want to share your work with others and prefer to do so under proprietary rather than open source license.

The first item in this FAQ outlines a variety of use cases in terms of which edition would be the best fit:
http://livecode.com/support/ask-a-question/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

Re: using LC apps with smaller monitors

Post by adventuresofgreg » Fri Oct 24, 2014 4:24 pm

OK, that's clear. Thanks Richard.

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: using LC apps with smaller monitors

Post by [-hh] » Wed Oct 29, 2014 2:40 pm

Warning. Currently (LC 6.6.4/ 6.6.5/ 6.7.0/ 7.0.0) beware of this behaviour of scalefactor:

If your stack is unfavourably positioned then distinctly diminishing the scale factor, or distinctly enlarging it respectively (incl. repeated use of these) will move the whole stack window "offscreen" (out of sight).
shiftLock happens

Post Reply