home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 16194 < prev    next >
Encoding:
Internet Message Format  |  1992-11-21  |  1.5 KB

  1. Path: sparky!uunet!sybus.sybus.com!myrddin!tct!deep6!nifty.UUCP!fgd3
  2. From: fgd3@nifty.UUCP (Fabbian G. Dufoe, III)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Gadget problems !!  NEED HELP !!!!!
  5. Distribution: world
  6. Message-ID: <fgd3.02yd@nifty.UUCP>
  7. References:  <1992Nov20.123451.1@kosmos.wcc.govt.nz>
  8. Date: 21 Nov 92 12:32:08 EST
  9. Organization: Fabbian G. Dufoe, III
  10. Lines: 21
  11.  
  12. In article <1992Nov20.123451.1@kosmos.wcc.govt.nz> landall_v@kosmos.wcc.govt.nz writes:
  13. >What I want to do is this :   When, say gadget one, is selected I now want to
  14. >select gadget two. I select it, now I want gadget one to go off and gadget two
  15. >to come on.
  16.  
  17.    If you're working with Workbench 2.0 I believe the GadTools library
  18. provides this feature for you (it's called mutual exclusion).  If you're
  19. using Workbench 1.3 you will have to do it yourself.  You begin by deciding
  20. which gadgets are mutually exclusive.  All those gadgets have to have the
  21. GADGIMMEDIATE flag set.  When the user clicks on one you will get a
  22. GADGETDOWN message.  Remove the gadget from the gadget list, set the
  23. SELECTED bit in the Flags field, add the gadget back to the list, and
  24. refresh the gadget.  Then, for each of the other gadgets in the mutual
  25. exclusion set, remove the gadget from the list, reset the SELECTED bit in
  26. the Flags field, add the gadget back to the list, and refresh it.
  27.  
  28. --Fabbian G. Dufoe, III
  29.    350 Ling-A-Mor Terrace South   | GEnie:    F.DUFOE3
  30.    St. Petersburg, Florida  33705 | internet: fgd3%nifty@tct.com
  31.    813-823-2350                   | uucp:     ...tct!deep6!nifty!fgd3
  32.  
  33.