home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7097 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.4 KB

  1. Path: pravda.aa.msen.com!not-for-mail
  2. From: crandall@mail.msen.com (Chad Randall)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Can you mix GadTools & std Intuition Gadgets?
  5. Date: 9 Apr 1996 12:23:39 GMT
  6. Organization: Msen, Inc. -- Ann Arbor, MI.
  7. Message-ID: <4kdksb$1ho@pravda.aa.msen.com>
  8. References: <4kad3q$fvg@canopus.cc.umanitoba.ca> <4kbovo$pmp@cville-srv.wam.umd.edu> <13213909@sourcery.han.de>
  9. NNTP-Posting-Host: conch.aa.msen.com
  10. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  11.  
  12. Olaf Barthel (olsen@sourcery.han.de) wrote:
  13. : In Article <4kbovo$pmp@cville-srv.wam.umd.edu>, Udo K Schuermann <walrus@wam.umd.edu> wrote:
  14. : > In article <4kad3q$fvg@canopus.cc.umanitoba.ca>,
  15. : > Kenneth Paulson <umpaul18@cc.umanitoba.ca> wrote:
  16. : > >I've read through all of the documentation that I have, and I can't seem to
  17. : > >find anything definite.  Can you mix GadTools gadgets with standard
  18. : > >Intuition Gadgets?
  19. : >
  20. : > Yes. The easiest way, and probably most compatible in the future, is to
  21. : > place non-GadTools gadgets first, and hang the GadTools gadgets off the
  22. : > end of that list:
  23. : >
  24. : >  Window.FirstGadget->[stdgad]->[stdgad]->[GTgadgets....]
  25. : >
  26. : > For best compatibility, make no assumptions about the list of GadTools
  27. : > gadgets except that it's a list of gadgets of some sort. I'd say walking
  28. : > that list to the end is about the most assumption you can make, but if you
  29. : > keep the organization as in the example above, you won't even need to do
  30. : > that. Also, do not modify any GadTools gadgets. If you need to make changes
  31. : > to a GadTools gadgets, destroy the whole list (of GadTools gadgets) and
  32. : > rebuild it (you need not, of course, destroy your own gadgets.)
  33. :    Did I miss something? Why not use two AddGList() calls, one with the
  34. : gadtools gadgets and one with the BOOPSI gadgets?
  35.  
  36. But only if you add the GadTools Gadgets last, or if you remove the BOOPSI gadgets first.
  37.  
  38. A GadTool gadget may actually consist of several gadgets.  A simple scroller, for example,
  39. has 2 gadgets. One simple, unselectable one for the bevel image, and a seperate one for
  40. the actually prop.  As there is no LEGAL way of finding this out, you can
  41. only add a GadTool gadget at the end of a GList, then remove the entire sub-glist
  42. starting at the pointer given in your first CreateContext() call.
  43.  
  44. You can add multiple gadtools' glists, tho.  Just add them, one at a time to the end
  45. of the window glist.  To remove them, do it in reverse.
  46.