Article View: comp.sys.amiga.tech
Article #11273Re: String Gadgets
From: Jim Mackraz
Date: Tue, 31 Jan 1989 21:23
Date: Tue, 31 Jan 1989 21:23
24 lines
1595 bytes
1595 bytes
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.
Technical Details
Message-ID:
<3297@amiga.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!oliveb!amiga!jimmReferences:
<sXqvpRy00V4D42YUwk@andrew.cmu.edu> <86686@sun.uucp> <483@infohh.rmi.de> <438@madnix.UUCP> <10999@s.ms.uky.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <sXqvpRy00V4D42YUwk@andrew.cmu.edu> <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