Multiple resolutions, resize stack a solution

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: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

Re: Multiple resolutions, resize stack a solution

Post by SteveTX » Mon Jun 24, 2013 2:12 am

I'm using programmatic creation and placement of objects so that it can be agnostic to the platform and resolution it is on. This method is much more complex and slower in development, but frees you up from the headache of worrying about device resolution. I would not advise using this method unless you are planning on reusing the theme you create.

Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

Re: Multiple resolutions, resize stack a solution

Post by Nakia » Thu Jul 04, 2013 6:21 am

strongbow wrote:G'day all

Just in case you weren't aware of it, Monte presented his scaling/resolution independent framework called mApp at the LC Developer conference a month or so ago. He has it available on his website at mergext.com

Definitely worth a look. I'm currently using it and hoping to get at least some starting docs done for it one of these days.

cheers

Alan
Was there anywhere we could watch this presentation?

I downloaded it from mergExt and can't so far figure out how it works...

archer2009BUSknbj
Posts: 72
Joined: Sat Apr 06, 2013 8:09 am
Location: London

Re: Multiple resolutions, resize stack a solution

Post by archer2009BUSknbj » Mon Oct 14, 2013 12:46 pm

I've not created an Android App in LiveCode since June 2013 - is there anything new with regards to resizing in Android I should know about before beginning a new project?

I know LiveCode has been updated several times in the last 4 months but didn't see anything new from RunRev about it having new super powers to deal with different screen sizes?

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

Re: Multiple resolutions, resize stack a solution

Post by Simon » Mon Oct 14, 2013 5:45 pm

Hi archer2009BUSknbj,
In liveCode 6.5 there are some capabilities but I haven't tried them yet.
http://newsletters.livecode.com/september/issue157/
Watch out 6.5 is a very early release.

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

archer2009BUSknbj
Posts: 72
Joined: Sat Apr 06, 2013 8:09 am
Location: London

Re: Multiple resolutions, resize stack a solution

Post by archer2009BUSknbj » Mon Oct 14, 2013 6:42 pm

Simon wrote:Hi archer2009BUSknbj,
In liveCode 6.5 there are some capabilities but I haven't tried them yet.
http://newsletters.livecode.com/september/issue157/
Watch out 6.5 is a very early release.

Simon

Good to know but I'm kinda confused by the new update.

if I want to design an Android App then does it require me to use any special code to set up the automatic resizing?

I created a small test App, all it was, was an 480 by 800 pixel screen with 4 buttons, one in each corner this was the resolution of my old phone, but I ran it on my Samsung Galaxy Note which has a much larger screen (800 x 1280 pixels)

I was expecting either the app to either fill the entire screen or only fill part of the screen, what I got instead what the buttons going off the edge of the screen.

I'm really confused what's going on here.

I've attached a screenshot
Attachments
2013-ScreenShot-RunRev-LiveCode-001.jpg

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

Re: Multiple resolutions, resize stack a solution

Post by Simon » Mon Oct 14, 2013 6:52 pm

Hi archer2009BUSknbj,
I think in reading that newsletter the current implementation is for pixel density only.

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

archer2009BUSknbj
Posts: 72
Joined: Sat Apr 06, 2013 8:09 am
Location: London

Re: Multiple resolutions, resize stack a solution

Post by archer2009BUSknbj » Wed Oct 16, 2013 1:28 pm

I'm really confused as to why the 4 buttons I drew would spill over the edge on my Samsung Galaxy note.

The canvas on LiveCode was only 480 Pixels wide whilst my Samsung had 800 pixel so if anything it should have been taking up only about a half of the screen.

All I can assume is this is some kind of major bug.

marcelloe
Posts: 140
Joined: Thu Oct 17, 2013 2:26 pm

Re: Multiple resolutions, resize stack a solution

Post by marcelloe » Tue Nov 12, 2013 7:11 pm

Is there way to use this script on multiple cards at once? Also, if I put the results of this script from every card into the stack it will be over 1000 lines long. Is there a simpler way to do the same?

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

Re: Multiple resolutions, resize stack a solution

Post by Simon » Tue Nov 12, 2013 8:30 pm

Hi marcelloe,
You should be working with the new LiveCode 6.5.0 RC2 (RC3 should be available today). It has the resolution independence built in.

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

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”