How do I structure my cards

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
jalz
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 340
Joined: Fri Sep 12, 2008 11:04 pm

How do I structure my cards

Post by jalz » Thu Apr 26, 2012 9:10 pm

Hi all,

Need some advice on how to structure my app please. Im planning to have an app, with the following screens; Customer,Suppliers,Jobs, Invoices and Credits. I want to have a screen which has a navigation on the left hand side, and if the Customer button is pressed, I want the right hand side to change to that screen depending on the button.

The thing is I want to the left hand pane to be global - most of the apps Ive seen seem to be slicker that way, so if I add another button to it, I want that to be a global change. Now in html you can achieve this by using iframes, or if I was to do it in php I would generate the left hand navigation as a separate file and then use an include in my php code to bring that page into the one I want it in.

With stacks and cards, Im still scratching my head working out the best way to achieve this. Has anyone got any suggestions how I can approach this. I want to keep my solution nice and tidy with a 'global' navigation bar.

Many thanks

Jalz

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: How do I structure my cards

Post by mwieder » Thu Apr 26, 2012 9:31 pm

Structuring the display of an app is a subjective thing: ask five developers and you'll get ten different (and all correct) answers.

But one approach to thenavigation menu is simple:

create a bunch of buttons
arrange them on the card to form the menu
group them
set the group's backgroundBehavior to true

Now when you create new cards the group of buttons will be on each one.
You can add buttons to the group later and the group will still show up on the other cards.

jalz
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 340
Joined: Fri Sep 12, 2008 11:04 pm

Re: How do I structure my cards

Post by jalz » Thu Apr 26, 2012 9:41 pm

Thanks mweider,

I'll try this with my navigation. I totally agree regarding your view that navigation is totally subjective. I'm trialling out implementing Apples UI and navigation method in my app, see how it goes.....

Thanks
Jalz

Post Reply