Page 1 of 1
Card objects not showing again
Posted: Tue Dec 31, 2013 8:01 am
by EvelynZ
I have what seems to be a simple problem but I can't figure out what's wrong. I've been doing the idea2App lessons but Elanor doesn't have this problem !
When I go into Run mode, my navigation buttons work fine - I go to each card and the title changes. But when I go back to the first card that has buttons, text boxes, etc., these objects don't show back up - the card is blank! Help

Re: Card objects not showing again
Posted: Tue Dec 31, 2013 9:06 am
by Simon
Hi EvelynZ,
Welcome to the forums
idea2App is paid for so not sure how many people know what your scripts look like or should look like.
Just as a guess, I'm thinking you are not navigating to the card you think you are, maybe you added an extra card by accident?
Well to find out just do ctrl+shift+c while displaying the blank card, that will show you the card script of that card. At the top of the script editor you can see the card ID. Is it the same as the card you expected to go to?
Simon
Re: Card objects not showing again
Posted: Tue Dec 31, 2013 2:49 pm
by dunbarx
Hi.
Sort in line with what Simon suggested, put this in your stack script:
Code: Select all
on opencard
put the number of this card
end opencard
In the message box, you will see the current card number each time you navigate from one to another. Now, is that "blank" card really the one you think?
Craig Newman
Re: Card objects not showing again
Posted: Tue Dec 31, 2013 4:58 pm
by dave.kilroy
Hi EvlynZ
There is another way you can check the number of cards in your app without writing any code: In the IDE press cmd + 3 to cycle through the cards in your app (this is on a mac, on a Win machine use ctrl + 3). If you have the inspector open at the same time showing a card in your app, as you cycle through the cards you can see the changes in the inspector (unless you locked it first...)
Also and as well, you could always have a look in the project browser (you can find it in the Tools menu).
Dave
Re: Card objects not showing again
Posted: Tue Dec 31, 2013 5:28 pm
by EvelynZ
Thanks much for the replies. Something very strange was going on with my app last night, so I just deleted the whole navigation system, rebuilt it, and voila, working OK now. Happy New Year
