Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!oliveb!amiga!jimm From: jimm@amiga.UUCP (Jim Mackraz) Newsgroups: comp.sys.amiga.tech Subject: Re: String Gadgets Message-ID: <3297@amiga.UUCP> Date: 31 Jan 89 21:23:34 GMT References: <86686@sun.uucp> <483@infohh.rmi.de> <438@madnix.UUCP> <10999@s.ms.uky.edu> Reply-To: jimm@cloyd.UUCP (Jim Mackraz) Organization: Commodore-Amiga Inc, Los Gatos CA Lines: 24 In article <10999@s.ms.uky.edu> jgary@ms.uky.edu (James E. Gary) writes: ) )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. That's correct, and as described in the Intuition V1.2 Enhancer Document. Also, if the gadget is in a Requester you are putting up, wait for the REQSET message before calling ActivateGadget(). jimm Using Delay() for this is wrong, and icky, and unecessary. -- Jim Mackraz, I and I Computing "Like you said when we crawled down {cbmvax,well,oliveb}!amiga!jimm from the trees: We're in transition." - Gang of Four Opinions are my own. Comments are not to be taken as Commodore official policy.