Hiding a Card?

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
punchcard
Posts: 19
Joined: Mon Sep 28, 2015 5:41 am

Hiding a Card?

Post by punchcard » Mon Sep 28, 2015 5:57 am

I have a few cards at the end of a stack that I would like to skip over in doing go next or go previous routines. I realize that stacks can be hidden, but is there a way to hide or go invisible on a card? I have been skipping over the cards by checking their names but was curious if there was a more graceful way. One card (not that it matters) at the moment happens to be a mobGUI card and another is a settings card using buttons from the previous card. Any insight will be appreciated.

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

Re: Hiding a Card?

Post by Klaus » Mon Sep 28, 2015 12:39 pm

Hi punchcard,

1. welcome to the forum! :D

2. No "more graceful" way then to check in your navigation buttons!

Code: Select all

## e.g. Next button:
...
if the short name of this cd = "last card that can be navigated to" then
  go cd 1
  ## or wherever...
else
  go next
end if
...
You get the picture.

Best

Klaus

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

Re: Hiding a Card?

Post by dunbarx » Mon Sep 28, 2015 2:24 pm

Hi.

What Klaus said.

Depending on how one navigates, you can place something similar to his suggestion in the stack script, using an "openCard" handler. If you had several cards that needed bypassing, which might change, you could store their names or ID's in a custom property and have the handler check as they come up.

Craig Newman

punchcard
Posts: 19
Joined: Mon Sep 28, 2015 5:41 am

Re: Hiding a Card?

Post by punchcard » Mon Sep 28, 2015 7:00 pm

Klaus & Craig, thank you for the warm welcome and both suggestions! I am going to stay with checking the last wanted card name (or number) and if the cards are not in a clean sequence in the long run, I will take the route suggested by Craig.

Post Reply