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

  1. Path: sourcery.han.de!not-for-mail
  2. Newsgroups: comp.sys.amiga.programmer
  3. References: <4kad3q$fvg@canopus.cc.umanitoba.ca> <4kbovo$pmp@cville-srv.wam.umd.edu> <13213909@sourcery.han.de> <4kdksb$1ho@pravda.aa.msen.com>
  4. From: "Olaf Barthel" <olsen@sourcery.han.de>
  5. Date: Tue, 09 Apr 1996 22:44:14 +0100
  6. X-NewsReader: IntuiNews 1.3a (7.9.95)
  7. Subject: Re: Can you mix GadTools & std Intuition Gadgets?
  8. Message-ID: <13213912@sourcery.han.de>
  9.  
  10. In Article <4kdksb$1ho@pravda.aa.msen.com>, Chad Randall <crandall@mail.msen.com> wrote:
  11. > Olaf Barthel (olsen@sourcery.han.de) wrote:
  12. > : In Article <4kbovo$pmp@cville-srv.wam.umd.edu>, Udo K Schuermann <walrus@wam.umd.edu> wrote:
  13. > : > In article <4kad3q$fvg@canopus.cc.umanitoba.ca>,
  14. > : > Kenneth Paulson <umpaul18@cc.umanitoba.ca> wrote:
  15. > : > >I've read through all of the documentation that I have, and I can't seem to
  16. > : > >find anything definite.  Can you mix GadTools gadgets with standard
  17. > : > >Intuition Gadgets?
  18. > : >
  19. > : > Yes. The easiest way, and probably most compatible in the future, is to
  20. > : > place non-GadTools gadgets first, and hang the GadTools gadgets off the
  21. > : > end of that list:
  22. > : >
  23. > : >  Window.FirstGadget->[stdgad]->[stdgad]->[GTgadgets....]
  24. > : >
  25. > : > For best compatibility, make no assumptions about the list of GadTools
  26. > : > gadgets except that it's a list of gadgets of some sort. I'd say walking
  27. > : > that list to the end is about the most assumption you can make, but if you
  28. > : > keep the organization as in the example above, you won't even need to do
  29. > : > that. Also, do not modify any GadTools gadgets. If you need to make changes
  30. > : > to a GadTools gadgets, destroy the whole list (of GadTools gadgets) and
  31. > : > rebuild it (you need not, of course, destroy your own gadgets.)
  32. > :
  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.  
  47.    Yep, the BOOPSI Gadgets should come first. At least that's backed by evidence: if
  48. it were not possible to mix BOOPSI and GadTools gadgets, one wouldn't be able to
  49. get close, depth, zoom and sizing gadgets to work with GadTools controls.
  50.  
  51. --
  52. Home: Olaf Barthel, Brabeckstrasse 35, D-30559 Hannover
  53.  Net: olsen@sourcery.han.de
  54.