home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!utcsri!torn!watserv2.uwaterloo.ca!watmath!undergrad.math.waterloo.edu!napier.uwaterloo.ca!swogryze
- From: swogryze@napier.uwaterloo.ca (Steve Ogryzek)
- Subject: Re: radiobuttons
- Message-ID: <C1F5w8.Ipz@undergrad.math.waterloo.edu>
- Keywords: radiobuttons
- Sender: news@undergrad.math.waterloo.edu
- Organization: University of Waterloo
- References: <1993Jan22.074214.27994@siemens.co.at>
- Date: Mon, 25 Jan 1993 17:00:07 GMT
- Lines: 22
-
-
- To do what you wish to do you need to associate a variable with each set
- of radiobuttons you wish to use. For example:
-
- radiobutton .button1 -variable group1 -value one -text button1
- radiobutton .button2 -variable group1 -value two -text button2
-
- radiobutton .button3 -variable group2 -value one -text button3
- radiobutton .button4 -variable group2 -value two -text button4
-
- So now .button1 and .button2 will act separately from .button3 and .button4
- Also you can now change the value of the radiobuttons in your program by
- setting the value in group1 or group2 to be either one or two. In other words,
- let's say .button1 is currently selected. You can change the selection to
- .button2 buy executing the following instruction "set group1 two" (but this
- does not automatically invoke the instruction associated with the radiobutton)
-
- Hope this helps,
- -Steve
-
-
- p.s. Hi Mark!!
-