#TCL Radio Buttons
15-Jul-93 11:59:44
Sb: #7015-#TCL Radio Buttons
Fm: Spec Bowers 70731,3710
To: Burt Johnson 76304,3574
Burt,
There are at least two different ways to manage radio buttons in the TCL.
Get/SetStationID is one of the ways. (Setting a button to ON and letting
ProviderChanged turn off the other buttons is the other way.) Unfortunately, as
you have discovered, the ID field of a pane is initialized to 0. To use station
IDs you'll have to set the ID field of the radio groups to some unique number.
You could use the resource IDs as unique numbers. In your case, you could use
'R', 'J', 'N', and 'L'. (There isn't a method for setting the ID; you have to
assign directly to the instance variable.)
In AppMaker 1.5.4X (which I recommend you install) we generate code to set the
radio buttons' IDs to 1,2,3,4, etc. and generate Get/SetGroupChoice methods.
Spec