home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17426 < prev    next >
Encoding:
Text File  |  1992-12-16  |  1.3 KB  |  47 lines

  1. Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!think.com!spool.mu.edu!sol.ctr.columbia.edu!ira.uka.de!smurf.sub.org!flatlin!pilhuhn!senga.ka.sub.org!chr
  2. From: chr@senga.ka.sub.org (Christian Riede)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: MX_KIND Radio buttons
  5. Message-ID: <jKt8s*hI0@senga.ka.sub.org>
  6. Date: Tue, 15 Dec 1992 15:49:07 GMT
  7. References: <1992Dec14.134809.22832@eua.ericsson.se>
  8. Organization: Private UUCP site
  9. X-Newsreader: Arn V1.00 pre
  10. Lines: 35
  11.  
  12. In article <1992Dec14.134809.22832@eua.ericsson.se>, Tomas Pihl writes:
  13.  
  14. > Could someone tell me how to tell (at any time) which one
  15. > of my radio buttons that are currently selected?
  16.  
  17. You'll have to remember the actual value, something like:
  18.  
  19. while (IMsg = GT_GetIMsg(Window->UserPort))
  20. {
  21.     /* remember values */
  22.     Class = IMsg->Class;
  23.     Code  = IMsg->Code;    
  24.     IAddr = IMsg->IAddress;
  25.  
  26.     /* replay message */
  27.     GT_ReplyIMsg(IMsg);
  28.  
  29.     switch(Class)
  30.     {
  31.         case GADGETDOWN:
  32.             switch(((struct Gadget *)IAddr)->GadgetID)
  33.             {
  34.                 case MX_SELECT:
  35.                     MX_Select = Code;
  36.             }
  37.     }
  38. }
  39.  
  40. Gruss, Christian
  41.  
  42. -- 
  43. Christian Riede, Lange Strasse 88, D-W7500 Karlsruhe 51, Germany 
  44. Tel. (+49) 721 {886091 | 608-4487 | 608-2749}  |   iso-8859-1:   
  45. EMail: chr@senga.ka.sub.org, riede@ira.uka.de  |  Σ÷ⁿ▀==aeoeuess 
  46.             Fuel is a great substitute for brain
  47.