Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!caen!kuhub.cc.ukans.edu!hawk!chai From: chai@hawk.cs.ukans.edu (Ian Chai) Newsgroups: comp.sys.mac.hypercard Subject: Re: Radio button groups Message-ID: <1991Mar21.205829.10481@hawk.cs.ukans.edu> Date: 21 Mar 91 20:58:29 GMT References: <27E90121.390@ics.uci.edu> Organization: University of Kansas Computer Science Dept Lines: 28 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