home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / amiga / programm / 12681 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  2.0 KB

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