CompuServe Messages

#AM 1.5.4X & TCL

    17-Jul-93 12:06:30
Fm: Rich Parker 76556,1132
To: Burt Johnson 76304,3574
Burt, Handling radio buttons is quite simple, I think. If you refer to my book, you'll see that I'm assigning each of them an (arbitrary) ID by simply storing it in the "myRadioButton->ID" instance variable. From that point, the DoCommand method gets called when a radio button is clicked. You can do whatever you wish based upon the command. The long word passed into the DoCommand method, in the case of radio buttons, is the contents of its ID field. If you have a copy of the THINK C book, check the assignment of ID values in the IWorksheet method on page 303 (the identifiers are enumerated and shown on page 304), and the corresponding DoCommand method is shown, beginning on page 305. I think it's straightforward. This should work for windows as well as modal or nonmodal dialogs. -rich-