Hello,
I have a stack with 8 cards. Card 1 is a splash screen with a button to go to next card. Cards 2-8 have my grouped MobGUI Nav radio buttons/Tabbar/Nav title bar set up. The grouped controls work fine. However, if I navigate from cards 3-8 back to card 1 (via command-1) and then click the go to next card button on my splash screen, I go to card 2 with the correct content but the highlighted button and title bar both still say the name of the card that I manually navigated away from. Same thing for a user - if they close the app while on a certain card, when they reopen the app and click the Start (go to next card) button, the content is correct for card 2 but the highlighted button and title still have the info from the card they were on when they quit the app.
What's the best approach to fix this? I've tried many fixes and think I'm just creating more problems...
Navigation problem
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Navigation problem
Hi.
Not quite sure about your problem, but many objects have properties that "stick" if you do not set them correctly. But I would try a more robust solution, perhaps a handler in the stack script:
on opencard
put the name of this card into field "yourTitleField" --or the number?
set the hilite of button "yourTabbedButton" to somethingThatMakesSenseForYou
end opencard
Craig Newman
Not quite sure about your problem, but many objects have properties that "stick" if you do not set them correctly. But I would try a more robust solution, perhaps a handler in the stack script:
on opencard
put the name of this card into field "yourTitleField" --or the number?
set the hilite of button "yourTabbedButton" to somethingThatMakesSenseForYou
end opencard
Craig Newman
Re: Navigation problem
Thanks Craig.
This worked in the card script of the card I was navigating to from outside the control group:
on opencard
send "mouseDown" to group "Home"
put "Home" into fld "mgcLabel"
end opencard
This worked in the card script of the card I was navigating to from outside the control group:
on opencard
send "mouseDown" to group "Home"
put "Home" into fld "mgcLabel"
end opencard