Visible of card
Mike Bonner
bonnmike at gmail.com
Tue Jun 4 12:58:20 EDT 2013
It sounds like you are not successfully returning to the card with no
image, or the image is on BOTH cards. (or the image is part of a group with
its backgrounbehavior set to true which has caused that group to be on both
cards)
If you successfully switch from a card with an image to a card without an
image, the image shouldn't be visible no matter how its layered. So it must
be one of the above scenarios.
Wait, 1 more possibility. If you're displaying the image using a revbrowser
object then THAT control is an overlay so you'd need to use revbrowserset
browserId,"visible",false when you switch to a card where the image
(browser) shouldn't show.
On Tue, Jun 4, 2013 at 10:48 AM, Klaus major-k <klaus at major-k.de> wrote:
> Hi Graham,
>
> Am 04.06.2013 um 18:45 schrieb Graham Pearson <gspearson at gmail.com>:
>
> > I am trying to set the visible of a card to false and I am getting an
> > error of execution error at line n/a (Object: can't set this property)
>
> well, that's true!
>
> CARDS do not have this property, but you could hide/show the STACK with
> the card,
> the user won't tell the difference :-)
>
> > I have 2 cards, one with buttons and the other one is an image that gets
> > loaded from a website. On the card with the image, I have a button to
> > return back to the initial card with buttons so user can select another
> > image to view. My issue which I think has to do with layers is that the
> > image is always on top so when the user returns to the card with buttons
> > they are not visible.
> >
> >
> > I have tried to set the layer of the card to another number higher or
> > lower to the layer of the card with the buttons without much success.
> > Will rest my brain before going back to the forums to search for a
> solution.
>
> When you set the layer or number of card, you will only move it inside the
> stack that it is in.
> See above, hide/show the stack is your solution.
>
>
> Best
>
> Klaus
> --
> Klaus Major
> http://www.major-k.de
> klaus at major-k.de
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list