Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!huma1!fry From: fry@huma1.HARVARD.EDU (David Fry) Newsgroups: comp.sys.mac Subject: Re: Hypercard again (radio button) Message-ID: <2948@husc6.UUCP> Date: Wed, 7-Oct-87 11:59:44 EDT Article-I.D.: husc6.2948 Posted: Wed Oct 7 11:59:44 1987 Date-Received: Sat, 10-Oct-87 08:14:16 EDT References: <30200@sun.uucp> Sender: news@husc6.UUCP Reply-To: fry@huma1.UUCP (David Fry) Organization: Harvard Math Department Lines: 26 In article <30200@sun.uucp> chuq%plaid@Sun.COM (Chuq Von Rospach) writes: >I can't find a stack that uses radio buttons. As far as I can tell, there is >no documentation on using them in either Goodman's book or the help stack >(should I take this as a hint? I NEED radio buttons). Goodman simply says >"you need a big script to handle radio buttons" which is stating the obvious >without telling me anything. > >I know what I need to do to handle a set of radio buttons properly. What I >don't know, and can't find any documentation on, is (1) how to query the >state of a radio button ("hi, are you checked?") and how to alter it ("hey, >turn yourself on!"). Anyone know the magic incantation? Look at the phone message card in the Stack Ideas stack. Those check boxes on the right hand side might as well be radio buttons; the method used for the boxes will work just well for what you want to do. The basic idea is to make an invisible field which holds the word "true" or "false," or whatever you want it to say, which corresponds to a on or off state for the button. Then when the button is clicked have the script check the contents of the field, toggle the value, and highlight or unhighlight the button accordingly. David Fry fry@huma1.harvard.EDU Department of Mathematics fry@harvma1.bitnet Harvard University ...!harvard!huma1!fry Cambridge, MA 02138