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