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