home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15405 < prev    next >
Encoding:
Internet Message Format  |  1992-11-05  |  1.6 KB

  1. Path: sparky!uunet!cbmvax!peter
  2. From: peter@cbmvax.commodore.com (Peter Cherna)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: GadTools and String Gadget Callback Hooks
  5. Message-ID: <36705@cbmvax.commodore.com>
  6. Date: 5 Nov 92 13:21:02 GMT
  7. References: <1992Nov5.025409.17427@u.washington.edu>
  8. Reply-To: peter@cbmvax.commodore.com (Peter Cherna)
  9. Organization: Commodore-Amiga, Inc.  West Chester, PA.
  10. Lines: 26
  11.  
  12. In article <1992Nov5.025409.17427@u.washington.edu> cooper@carson.u.washington.edu (Ken Cooper) writes:
  13. >
  14. >     I have been unsucessfully trying for a couple of days to get string gadget
  15. >callback editing hooks to work with GadTools STRING_KIND gadgets.  I have 
  16. >been able to successfully do this with regular intuition string gadgets, but
  17. >the gadtools gadget does not seem to call the hook.  I would appreciate it if
  18. >someone could provide some insight on whether or not the callback hooks
  19. >actually work with gadtools gadgets or not.
  20.  
  21. GadTools string gadgets _are_ Intuition string gadgets, with a friendly
  22. creation/handling/deletion wrapper.  String edit hooks work fine.
  23. ASL uses them.  Use the GTST_EditHook tag, with a pointer to your hook
  24. structure.  The same hook that works for your own hand-defined string
  25. gadgets will work with GadTools string and integer gadgets.
  26.  
  27. #define GTST_EditHook        GT_TagBase+55 /* String EditHook */
  28.  
  29. >Ken Cooper
  30.  
  31.      Peter
  32. --
  33. Peter Cherna, User Interface Development Group, Commodore-Amiga, Inc.
  34. {uunet|rutgers}!cbmvax!peter    peter@cbmvax.commodore.com
  35. My opinions do not necessarily represent the opinions of my employer.
  36. "I believe it's bad luck to be superstitious."
  37.  
  38.