open or go one stack to another

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
bobosquish
Posts: 9
Joined: Tue Dec 08, 2009 9:51 pm

open or go one stack to another

Post by bobosquish » Tue Dec 08, 2009 9:55 pm

This seems awfully basic, but it ain't working for me. I have a stack1 with a button script:

on mouseUp
go stack "stack2"
end mouseUp

It works great in the revmedia application, but when I build it for the web, the button press does nothing. Help?

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: open or go one stack to another

Post by bn » Tue Dec 08, 2009 11:01 pm

bobosquish,
welcome to the forum.
Jacqueline posted a how-to
http://jacque.on-rev.com/codebits/dualrevlets.irev
don't be intimidated by the javascript. The main point is that the id of the two stacks have to be the same. Tweak for placement. Jacqueline explains it in detail. Ask if stuck.
regards
Bernd

bobosquish
Posts: 9
Joined: Tue Dec 08, 2009 9:51 pm

Re: open or go one stack to another

Post by bobosquish » Wed Dec 09, 2009 2:36 pm

I've tried the technique Jacque outlined. My situation is a little bit different. Her two stacks do not overlap visually, mine do. Stack1 is displayed; when I press a button, the display should change to stack 2. I can't get that to work with different stacks or substacks. I've tried hiding the first stack before opening the second. The first stack remains visible, but is no longer active (can't click buttons). The second stack does not appear.

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: open or go one stack to another

Post by Klaus » Wed Dec 09, 2009 2:50 pm

Hi Bobo,

unfortunately, Revlets can only disply ONE stack in the window, although it was advertised.
Anyway, the only thing you can do is, supposed your two stacks have identical dimensions (width and height),
...
go stack "the substack" in window of this stack
...

Not tested, but this should be working (so they say :-))
Hope that helps.


Best

Klaus

bobosquish
Posts: 9
Joined: Tue Dec 08, 2009 9:51 pm

Re: open or go one stack to another

Post by bobosquish » Wed Dec 09, 2009 3:23 pm

Thanks, Klaus. I tried your idea, but that did not work either. I think we're stuck with one stack displayed in a revlet.

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: open or go one stack to another

Post by bn » Wed Dec 09, 2009 6:22 pm

Bobo,
I cant get a stack to hide in a revlet, setting its blendlevel to 100 does not work either. But you can hide elements of your stack like fields and so on. And you can go to another card on your stack. So with a little change in the user interface and the way you set up your stacks in the revlet you can do a lot of things. Think of it like a tabbed button. There also you hide and show fields buttons etc.
Just experiment a bit.
regards
Bernd

bobosquish
Posts: 9
Joined: Tue Dec 08, 2009 9:51 pm

Re: open or go one stack to another

Post by bobosquish » Wed Dec 09, 2009 6:43 pm

bn,

That's what I'm doing for now. Because my app includes multiple databases, I want to store each in their own stack just to keep the data files separate.

bobo

Post Reply