Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!uflorida!ukma!jgary From: jgary@ms.uky.edu (James E. Gary) Newsgroups: comp.sys.amiga.tech Subject: Re: String Gadgets Message-ID: <10999@s.ms.uky.edu> Date: 31 Jan 89 15:57:54 GMT References: <86686@sun.uucp> <483@infohh.rmi.de> <438@madnix.UUCP> Reply-To: jgary@ms.uky.edu (James E. Gary) Organization: U of Kentucky, Mathematical Sciences Lines: 8 I find it useful to wait for an ACTIVEWINDOW message before ActivateGadget() if I the window has just been opened. Apparently ActivateGadget() doesn't work at all if the window it is in is not active. If you are trying to activate the gadget immediately after opening the window, then you may get lucky depending on how busy the system is, and the window may get activated before your ActivateGadget() call, but you can't count on it. Best bet is to request an active window before messing with the gadget.