djpadz@bonnie.ics.uci.edu (David Jay Padzensky) (03/22/91)
I know this is something really basic, and I've done it before, but for the life of me, I can't remember how. How do you define a 'family' of radio buttons? ie- when you click one, it turns off the highlight in the others, kinda like option buttons are supposed to? Thanks -- Dj Padzensky _______________________________________________________________________________ Internet: djpadz@bonnie.ics.uci.edu | Neurotics build castles in the sky. America Online: DjPadz | Psychotics live in them. I sell them.
chai@hawk.cs.ukans.edu (Ian Chai) (03/22/91)
In article <27E90121.390@ics.uci.edu> djpadz@bonnie.ics.uci.edu (David Jay Padzensky) writes: >I know this is something really basic, and I've done it before, but >for the life of me, I can't remember how. How do you define a >'family' of radio buttons? ie- when you click one, it turns off the >highlight in the others, kinda like option buttons are supposed to? You create the buttons contiguously (eg. buttons 4 to 8) and then in each button, you put a script like on mouseUp family end mouseUp and then define in card or stack script: on family repeat with i = 4 to 8 set hilite of button i to false end repeat set hilite of target to true end family Uhh, I've not written in hypertalk for a while and I can't remember the exact syntax of the for loop (C and Pascal and BASIC all have totally different syntax) but the idea's the same. Ian Chai chai@cs.ukans.edu 2fntnougat@ukanvax.bitnet