home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / tcl / 2471 < prev    next >
Encoding:
Text File  |  1993-01-25  |  1.3 KB  |  35 lines

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!utcsri!torn!watserv2.uwaterloo.ca!watmath!undergrad.math.waterloo.edu!napier.uwaterloo.ca!swogryze
  3. From: swogryze@napier.uwaterloo.ca (Steve Ogryzek)
  4. Subject: Re: radiobuttons
  5. Message-ID: <C1F5w8.Ipz@undergrad.math.waterloo.edu>
  6. Keywords: radiobuttons
  7. Sender: news@undergrad.math.waterloo.edu
  8. Organization: University of Waterloo
  9. References:  <1993Jan22.074214.27994@siemens.co.at>
  10. Date: Mon, 25 Jan 1993 17:00:07 GMT
  11. Lines: 22
  12.  
  13.  
  14. To do what you wish to do you need to associate a variable with each set
  15. of radiobuttons you wish to use.  For example:
  16.  
  17. radiobutton .button1 -variable group1 -value one -text button1
  18. radiobutton .button2 -variable group1 -value two -text button2
  19.  
  20. radiobutton .button3 -variable group2 -value one -text button3
  21. radiobutton .button4 -variable group2 -value two -text button4
  22.  
  23. So now .button1 and .button2 will act separately from .button3 and .button4
  24. Also you can now change the value of the radiobuttons in your program by
  25. setting the value in group1 or group2 to be either one or two.  In other words,
  26. let's say .button1 is currently selected.  You can change the selection to 
  27. .button2 buy executing the following instruction "set group1 two" (but this
  28. does not automatically invoke the instruction associated with the radiobutton)
  29.  
  30. Hope this helps,
  31. -Steve
  32.  
  33.  
  34. p.s.  Hi Mark!!
  35.