home *** CD-ROM | disk | FTP | other *** search
- 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
- From: chr@senga.ka.sub.org (Christian Riede)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: MX_KIND Radio buttons
- Message-ID: <jKt8s*hI0@senga.ka.sub.org>
- Date: Tue, 15 Dec 1992 15:49:07 GMT
- References: <1992Dec14.134809.22832@eua.ericsson.se>
- Organization: Private UUCP site
- X-Newsreader: Arn V1.00 pre
- Lines: 35
-
- In article <1992Dec14.134809.22832@eua.ericsson.se>, Tomas Pihl writes:
-
- > Could someone tell me how to tell (at any time) which one
- > of my radio buttons that are currently selected?
-
- You'll have to remember the actual value, something like:
-
- while (IMsg = GT_GetIMsg(Window->UserPort))
- {
- /* remember values */
- Class = IMsg->Class;
- Code = IMsg->Code;
- IAddr = IMsg->IAddress;
-
- /* replay message */
- GT_ReplyIMsg(IMsg);
-
- switch(Class)
- {
- case GADGETDOWN:
- switch(((struct Gadget *)IAddr)->GadgetID)
- {
- case MX_SELECT:
- MX_Select = Code;
- }
- }
- }
-
- Gruss, Christian
-
- --
- Christian Riede, Lange Strasse 88, D-W7500 Karlsruhe 51, Germany
- Tel. (+49) 721 {886091 | 608-4487 | 608-2749} | iso-8859-1:
- EMail: chr@senga.ka.sub.org, riede@ira.uka.de | Σ÷ⁿ▀==aeoeuess
- Fuel is a great substitute for brain
-