home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / amiga / programm / 12531 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  979 b 

  1. Path: sparky!uunet!cs.utexas.edu!swrinde!mips!darwin.sura.net!welchgate.welch.jhu.edu!keithc
  2. From: keithc@welchgate.welch.jhu.edu (Keith Christopher)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: A needed utility for the Amiga...
  5. Message-ID: <1992Aug21.121049.16457@welchgate.welch.jhu.edu>
  6. Date: 21 Aug 92 12:10:49 GMT
  7. References: <13AUG199207344470@ariel.lerc.nasa.gov> <1992Aug17.190139.7358@ugle.unit.no> <18AUG199210433375@ariel.lerc.nasa.gov>
  8. Organization: Johns Hopkins Univ. Welch Medical Library
  9. Lines: 25
  10.  
  11.  
  12.  What is the best way to get response from a gadget being clicked ?
  13.  
  14. I used
  15.  
  16.  switch (((struct Gadget *) imsg->IAddress)->GadgetID)
  17. {
  18. case GD_close:
  19. .
  20. .
  21. break;
  22. case GD_open:
  23. .
  24. puts("Test!");.
  25. .
  26. break;
  27. }
  28.  
  29. any one know why the window will open and start outputting Test! over and over
  30. then close.? it seems as though it's treating the situation as if the gadgets
  31. are being clicked when I haven't.
  32.  
  33. keithc
  34.  
  35. New to programming the amiga. But with great ideas.!
  36.