Code: Select all
on preOpenCard
set the hilitedbutton of grp "grpA1" to 0
end preOpenCard
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
on preOpenCard
set the hilitedbutton of grp "grpA1" to 0
end preOpenCard
Code: Select all
on preopencard
set the hilitedbutton of group "grdA1" to the uMyAnswer of this cd
end preopencard
on closecard
set the uMyAnswer of this cd to the hilitedbutton of group "grdA1"
end closecard
jmburnod wrote:Hi shawnbic,
You have to store the result in a global variable or a customproperty and use it to set the hilitedbutton.
Something like that
Best regardsCode: Select all
on preopencard set the hilitedbutton of group "grdA1" to the uMyAnswer of this cd end preopencard on closecard set the uMyAnswer of this cd to the hilitedbutton of group "grdA1" end closecard
Jean-Marc
Code: Select all
on mouseUp
go to card question1
set the hilitedbutton of grp "grpA1" to 0
set the hilitedbutton of card "question2" grp "grpA2" to 0
set the hilitedbutton of card "question3" grp "grpA3" to 0
end mouseUp
Code: Select all
go to card question1
set the hilitedbutton of grp "grpA1" to 0
set the hilitedButton of grp "grpA2" card "question2" to 0
Let me try this and I'll update you. Thanks for the response.phaworth wrote:Hi Shawn,
The first block of code has the the grp and card references the wrong way round, should be grp "xxx" of card "abc".
Not sure why the second block doesn't work (except maybe no "of" before the card reference?) but I think I saw you had some preOpenCard stuff so maybe that overrides what you're doing. In general, I'd put card initialsation stuff in preOpenCard and not in the object the card is opened from.
HTH,
Pete
I haven't tried to build a standalone yet. So far it's only in the IDE.PBH wrote:Shawn,
There is a 'closeStack' message available too. You can use this to add clean-up stuff if necessary.
Is this just a problem in the IDE or do you have the same issue when you build a standalone?
Paul
Code: Select all
on mouseUp
go to card question1 -- works
set the hilitedButton of grp "grpA1" to 0 -- works
set the hilitedButton of grp "grpA2" of card "question2" to 0 -- does not work
set the hilitedButton of grp "grpA3" of card "question3" to 0 -- does not work
end mouseUp
Code: Select all
on OpenCard
set the hilitedbutton of grp "grpA1" to the gStudentAnswerQ1 of this card
end OpenCard
on closeCard
set the gStudentAnswerQ1 of this card to the hilitedbutton of group "grpA1"
--set the hilitedbutton of grp "grpA1" to 0
end closeCard
Code: Select all
on mouseUp
go to card "question1"
set the hilitedButton of grp "grpA1" to 0
set the gStudentAnswerQ1 of this card to the hilitedbutton of group "grpA1"
set the hilitedButton of grp "grpA2" of card "question2" to 0
set the gStudentAnswerQ2 of card "question2" to 0
set the hilitedButton of grp "grpA3" of card "question3" to 0
set the gStudentAnswerQ3 of card "question3" to 0
end mouseUp