Hi Ben,
Here's one way that works:
1) Make sure all the buttons have their autoHilite set to false. If this
isn't the case, the following won't work.
2) Put this in your stack script or the script of each card (but watch
for line wraps here):
on mouseDown
-- avoid acting on messages from other than the answer groups
if word 1 of the target <> "button" then pass mouseDown
if word 1 of the owner of the target <> "group" then pass mouseDown
-- set the answer button of a group
set the hilitedButtonID of the owner of the target \
to the ID of the target
end mouseDown
3) To reset all groups at 'openCard' time, do this:
on openCard
put the groupIDs of this cd into tGroupList
repeat for each line tThisGroup in tGroupList
set the hilitedButtonName of grp ID tThisGroup to empty
end repeat
end openCard
Then it should all work!
Phil Davis
Ben Bock wrote:
1) I have 30 groups or radio buttons per page, with several pages.
I'd like them to reset to zero on cardOpen. Thanks to helpful
feedback from here, I'm trying to avoid "hard-coding" as much, but
I'm flubbing the script.
on openCard
put the number of grps into clearGroups
repeat with x = 1 to clearGroups
put the groupIDs of grp x into tList
repeat for each line tGroup in tList
set the hilitedButton of grp id tGroup of grp x \\ to zero
end openCard
2) I tried to make some round buttons behave like radio buttons.
The "radio button dot" is a bit of a formatting hassle. I looked up
solutions in archives, but they don't seem to work for me, I'm
running 2.6.1 on Windows. Has anyone actually successfully made
regular buttons behave like radio buttons?
Indebted for any help,
Ben
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution