scrolling field + push

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
docHerman
Posts: 29
Joined: Sat Mar 24, 2012 9:20 pm

scrolling field + push

Post by docHerman » Sat Mar 24, 2012 9:34 pm

Dear all

For one month I try to work with RevRun. I like it, but still trying... Hope to make an App like NeuroMind (App store).

First I tried buttons, but I think scrolling list field is cooler.

Now I try to work with scrolling list field. I can select line in the scrolling field. But what code do I have to use in order to go an other card?

An other question about push:
when I went from I card to the other I tried push:

Code: Select all

    card 00 push left
     go to card 01
but what I saw was not what I meant: card 00 disappeared, card 01 showed up, it was pushed away by another card 01.
how do I solve these problems?

Thanx
docH

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10320
Joined: Wed May 06, 2009 2:28 pm

Re: scrolling field + push

Post by dunbarx » Sun Mar 25, 2012 2:39 am

Push is not a special effect. It is a command that stores a card in a special queue. The command you want for navigating to another card is: go card 2. You can also say "go next card". There're many other ways to move around a well. Read up on the "go" command.

I am not sure what you are doing, but do not name objects with numbers. You can say "go card 1". But maybe you can see that this might confuse the engine if there was a also card that had that name. Where would you go, to the numbered card or the card with that name? If you want, name cards with something like: cd1, or cd2. So when you say "go card 2", you always mean go to the second card.

I am not sure I answered all your questions. Write back.

Craig Newman

docHerman
Posts: 29
Joined: Sat Mar 24, 2012 9:20 pm

Re: push

Post by docHerman » Thu Apr 12, 2012 10:20 pm

@craig
I would like to slide one card over the other; or pushes the other card away.
thank you for your advice aboutcardnames,
docH

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

Re: scrolling field + push

Post by Klaus » Thu Apr 12, 2012 11:58 pm

Hi Doc,

do this:
...
lock screen for visual effect
go cd "cd01" ## :-)
unlock screen with visual wipe left
...

Look up "visual effect" in the dictionary!


Best

Klaus

Post Reply