home *** CD-ROM | disk | FTP | other *** search
- Path: trog.dra.hmg.gb!news
- From: sjyates@dra.hmg.gb (Steve Yates)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Changing Gadtools Gadgets
- Date: Mon, 19 Feb 1996 13:43:49 GMT
- Organization: RAF Innsworth
- Message-ID: <4g9v2g$7ch@trog.dra.hmg.gb>
- References: <50332724@river.prima.ruhr.de>
- Reply-To: sjyates@dra.hmg.gb
- NNTP-Posting-Host: 146.80.246.31
- X-Newsreader: Forte Free Agent v0.55
-
- "Carsten Wich" <c_wich@river.prima.ruhr.de> wrote:
-
- >Hi,
-
- >I have a question regarding gadgets that have been created using
- >the gadtools library. Is it possible to change e.g. the text or
- >the text color of a button gadget after it has been displayed ?
- >(in an OS friendly way of course !)
-
- >Greetings from "Irgendwo in Deutschland", Carsten
-
- >...Niemand ist unn=FCtz, er kann immer noch als schlechtes Beispiel dienen
-
- Yep there is a system friendly way of changing any of the tags that
- you pass to gadtools, I'll dig it out the RKM Manual tonight and let
- you know tomorrow.
-
- I Have another problem which I don't know whether anyone would of come
- accross yet. Here it is.
-
- I have created some gadgets in a window with gadtools. I want to
- remove them from the window and then place some new ones in there
- place.
-
- There is a large problem with this though. Once created you can use
- the intuition routine to remove them, and then add in some more. The
- gad tools GT_RefreshWindow routine must then be called (according to
- the RKM manual). Problem is that even if you clear the relevent areas
- of the window during that the gadgets still exist there, you can click
- where they were and they would just re-appear!!!!!!
-
- Now the RKM says in the section on Freeing Gadtools gadgets, that
- after you have removed the gadgets or closed the window, you must call
- FreeGadgets. This is so to free up any memory reserved for the
- gadgets. If you look that bit up in the manual it implies that you can
- remove gadtools gadgets from a Window.
-
- Has anyone managed to succesfully remove it yet?
-
- Also when trying to use the FreeGadgets routine on Gadtools gadgets
- removed from the window, it just simply crashes the system. With a
- Guru which says that it crashed due to a FreeMem problem with linked
- lists.
-
- Nightmare!!!
-
- My E-Mail address (for a short time) ICWHITING@taz.dra.hmg.gb
-
- Ian Whiting
-
-