Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!snorkelwacker!usc!brutus.cs.uiuc.edu!jarthur!elroy.jpl.nasa.gov!zardoz.cpd.com!tmiuv0!rick From: rick@tmiuv0.uucp Newsgroups: comp.sys.amiga.tech Subject: Re: Gadget help wanted Message-ID: <23@tmiuv0.uucp> Date: 2 Feb 90 16:49:49 GMT References: <1039LK-KARI@FINTUVM> Organization: Technology Marketing Inc., Irvine, CA Lines: 39 In article <1039LK-KARI@FINTUVM>, LK-KARI@FINTUVM.BITNET (Kari Sutela) writes: > I'm having some problems with a small program I made while trying to learn > proper gadget-programming. The problem is that the OnGadget(), OffGadget(), > and the RemoveGadget() functions don't bevahe quite the way I expected them > to do. The problems concern the rendering of the gadgets: > > 1. If I OffGadget() a gadget and then later on OnGadget() it again, the > gadget will be rendered in the enabled state only if it is an image-gadget. > If the gadget only has some IntuiText linked to it, it can be selected > but it will stay ghosted all the time. Yup. That's true. If you have a copy of the Intuition manual, there is a caveat about that in the secton on gadgets. I don't have my copy handy, but "it's in there". > 2. If I AddGadget() a gadget and then later on RemoveGadget() it, it will > be impossible to select it, but it won't disappear from the display even > though I call RefreshGadgets() immediately after the RemoveGadget(). Um, ya got me there. I've heard of that problem, but I can't remember the workaround. > [...] > - Kari Sutela lk-kari@mammutti.utu.fi or sutela@tucos.utu.fi > > PS. Pardon my bad english. Your English was just fine, Kari. Better than most Americans, in fact! -- +--------------------------------------------------------------------+ | Rick Stevens Opinions are mine. No one else wants them! | | | | Bang!: ..uunet!zardoz!tmiuv0!rick (day job) | | ..uunet!perigrine!ccicpg!conexch!amoeba2!rps2 (home) | | ..uunet!zardoz!xyclone!rps2 (home again!) | | CIS: 75006,1355 -or- 75006.1355@compuserve.com (whenever!) | | | | Growing old ain't for sissies - Bette Davis | +--------------------------------------------------------------------+