home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cbmvax!cbmehq!cbmden!hemmer!hemmer
- From: hemmer@hemmer.adsp.sub.org (Franz Hemmer)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Another Gadtools Q
- Message-ID: <hemmer.01uh@hemmer.adsp.sub.org>
- Date: 25 Aug 92 17:01:36 GMT
- References: <1992Aug23.140816.8872@ucc.su.OZ.AU> <15857@star.cs.vu.nl>
- Reply-To: cbmehq!cbmden!hemmer@cbmvax.commodore.com (Franz Hemmer)
- Organization: InterActivsion
- Lines: 34
- X-NewsSoftware: GRn 1.16e (7/4/92) by Mike Schwartz & Michael B. Smith
-
- In article <15857@star.cs.vu.nl> peraue@cs.vu.nl (Paul-Erik Raue) writes:
- > willw@extro.ucc.su.OZ.AU (William Waring) writes:
-
- > : KeyGadget(struct Window *Win, struct Gadget *Gad)
- > : {
- > : Gad->Flags ^= GFLG_SELECTED;
- > : RefreshGList(Gad,Win,NULL,1);
- > : Delay(2);
- > : Gad->Flags ^= GFLG_SELECTED;
- > : RefreshGList(Gad,Win,NULL,1);
- > : }
- >
- > Please, be very carefull when calling this routine. The RKM's state that it
- > is not really allowed to change any of the attributes of a gadget without
- > first removing it from the window. The routine described above can crash the
- > computer under some conditions. I know, it's happened to me. I used a similar
- > routine which would crash if it was called in rapid succession.
- >
- > So if you use this routine, please add the statements to remove the gadget
- > from the window before changing the Flags field and adding it afterwards.
-
- But you can't selectively remove and then add gadtools gadgets to a window, this
- according to the RKM: Libraries manual on page 411.
-
- > Paul-Erik Raue (peraue@cs.vu.nl)
-
- --
- *-------------------------------------------------------------------------*
- | _ UseNet: (uunet|rutgers|pyramid)!cbmvax!cbmehq!cbmden!hemmer |
- | \\ _ CBMNET: hemmer@hemmer.adsp.sub.org |
- | InterActi\X/ision - The name of precision |
- | Best regards >> Carpe Diem! - Seize the day! << |
- | Franz Hemmer - Software Developer located in Silkeborg, Denmark, Europe |
- *-------------------------------------------------------------------------*
-