One thing, multiple cards!?

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

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

One thing, multiple cards!?

Post by DevBoyLars » Sat Sep 20, 2014 8:52 am

Hello,
if I want to build a mobile App, I've to set up multiple cards for the different screen-resolution and different looks for multiple plattforms.

But the most things are the same on every card. For example such us "Name".

Can I access "Name" on every card at the same time or does I've to access every variable on every card, if there's something to change at runtime?

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

Re: One thing, multiple cards!?

Post by Simon » Sat Sep 20, 2014 1:09 pm

Hi,
I've to set up multiple cards for the different screen-resolution and different looks for multiple plattforms.
Not clear on your full question but for the above, no.
Here:
http://lessons.runrev.com/m/4069/l/1564 ... ll-devices

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

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: One thing, multiple cards!?

Post by DevBoyLars » Sat Sep 20, 2014 6:28 pm

Hi Simon,
no the auto-scale feature of LiveCode is useless, because of geometric deformation and/or borders and/or missing content for business-apps.

So I've to work with the much better solution altMobileResizer or set up multiple cards (one per screen-resolution, to use the available space of the different resolutions instead of just filling it ^^)


Back to my question:

What I mean is, if you've got two cards, which should show one same label "lastname" (such as), is there a way to update the content of label "lastname" on multiple cards with one line of code or do I have to address every label "lastname" on the multiple cards manually?

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

Re: One thing, multiple cards!?

Post by Simon » Sat Sep 20, 2014 6:43 pm

Hi DevBoyLars,
no the auto-scale feature of LiveCode is useless, because of geometric deformation..
You are the second person this week to say that? Can you show me an example?
I already know about altMobileResizer.

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

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

Re: One thing, multiple cards!?

Post by Simon » Sat Sep 20, 2014 7:15 pm

Oh wait... no you, are the same person to say that :oops:
Still... very interested in your example.

Back to your question, how about grouping your field "lastname" and setting it to "behave like background"?

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

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: One thing, multiple cards!?

Post by jacque » Sun Sep 21, 2014 6:43 pm

If you are seeing deformation then you are probably using the wrong type of scaling. Some of the fullscreen options follow the original ratios so that they keep the correct propotions, others distort the proportions to force the stack to fit the current screenrect.

I helped Chipp write his resizer handlers and they always force the original ratio. But even Chipp has abandoned his resizing methods in favor of the new built-in methods because altResizer doesn't consider screen densities, which matter for some Android devices, and because using fullscreen replaces many lines of code with a single command.

Experiment with all the fullscreen modes until you find which one works best for your app. They are really quite good.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: One thing, multiple cards!?

Post by DevBoyLars » Sun Sep 21, 2014 8:02 pm

It is very simple:

If you build a card for an iPhone 4 it would never work without geometric deformation if you use build-in auto-scale. So you've to work with external tools like AltMobileResizer.

But this wasn't my question at all -.-

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: One thing, multiple cards!?

Post by DevBoyLars » Sun Sep 21, 2014 8:05 pm

jacque wrote:If you are seeing deformation then you are probably using the wrong type of scaling. Some of the fullscreen options follow the original ratios so that they keep the correct propotions, others distort the proportions to force the stack to fit the current screenrect.

I helped Chipp write his resizer handlers and they always force the original ratio. But even Chipp has abandoned his resizing methods in favor of the new built-in methods because altResizer doesn't consider screen densities, which matter for some Android devices, and because using fullscreen replaces many lines of code with a single command.

Experiment with all the fullscreen modes until you find which one works best for your app. They are really quite good.

No they are truly not good.

Example 1 like above: Build a card for an iPhone 4 and auto-scale it to iPhone 5. Tada... geometric-deformation
Example 2: Build a card for an iPhone 4 and auto-scale it to an iPad... tada... geometric-deformation
Example 3: ....

It is a never-ending list. As long as LiveCode would has options like altMobileResizer to scale single opjects proportionally it is absolutely useless to build business-apps with one card for multiple screen-resolutions.

Please correct me, if I'm wrong with this :)

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

Re: One thing, multiple cards!?

Post by Simon » Sun Sep 21, 2014 8:12 pm

I'm guessing you don't like the loss of screen real estate when using "letterBox"?
No graphic distortion with it.

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

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: One thing, multiple cards!?

Post by DevBoyLars » Sun Sep 21, 2014 8:18 pm

Simon wrote:I'm guessing you don't like the loss of screen real estate when using "letterBox"?
No graphic distortion with it.

Simon
Never!! :D

This looks damn unprofessional for a real business-app!

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: One thing, multiple cards!?

Post by DevBoyLars » Sun Sep 21, 2014 9:11 pm

Ok, no one can help me with my real problem?

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: One thing, multiple cards!?

Post by jacque » Sun Sep 21, 2014 9:27 pm

If you need to change the layout dynamically for different devices then you may need to write resizing code. If you want to keep the same layout for all devices, then you can probably use one of the built-in fullscreen options. Which fullscreen option you choose would depend on the layout of your stack.

In one of my stacks I use the "noBorder" option and include an area around the edges of the card that contain no controls. This resizes correctly for all the devices I support. The difference is only that users see varying amounts of border around the edges. In another app I use the "empty" option, which works well for iOS devices. For that one, I let iOS do the scaling, which works because the images are all high density.

If you can show us a screenshot of your app we may be able to suggest the correct fullscreen option to use. If you do need to change the layout, then you should stay with your current method. But remember that if fullscreen isn't appropriate for your app, it may work fine for other apps.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: One thing, multiple cards!?

Post by jacque » Sun Sep 21, 2014 9:29 pm

DevBoyLars wrote:Ok, no one can help me with my real problem?
I'm not sure I understand your question. You can get "the cardnames of this stack" if you want a list. But explain more about what you want to do with the list.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

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

Re: One thing, multiple cards!?

Post by Simon » Sun Sep 21, 2014 9:37 pm

Simon wrote: ...
Back to your question, how about grouping your field "lastname" and setting it to "behave like background"?

Simon
Not doing it for you?

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

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: One thing, multiple cards!?

Post by DevBoyLars » Mon Sep 22, 2014 6:44 am

No, because of the fixed position :-p

As you see in my first post, I want to build multiple cards in different resolutions. So this can't works.

Is there no other way?

Post Reply