Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!sun-barr!rutgers!cbmvax!peter From: peter@cbmvax.commodore.com (Peter Cherna) Newsgroups: comp.sys.amiga.programmer Subject: Re: ActivateGadget in Requesters Message-ID: <20726@cbmvax.commodore.com> Date: 17 Apr 91 22:57:56 GMT References: <1991Apr17.151553.29314@maverick.ksu.ksu.edu> Reply-To: peter@cbmvax.commodore.com (Peter Cherna) Distribution: na Organization: Commodore-Amiga, Inc. West Chester, PA. Lines: 21 In article <1991Apr17.151553.29314@maverick.ksu.ksu.edu> jwb@cis.ksu.edu (Jeff W. Brogden) writes: > >I am trying to get a single string gadget to auto select in a requester when >the requester first comes up. I call Request(Window), and then >do a ActivateGadget(&Gadget, Window, Requester), but every time, >ActivateGadget returns a FALSE. Bringing up requesters is asynchronous. You must wait for the REQSET IDCMP message before calling ActivateGadget(). Likewise, if you open a window and want a gadget in it active right away, you must wait for the ACTIVEWINDOW IDCMP message before calling ActivateGadget(). >Jeff Brogden | Kansas State University >Internet: jwb@cis.ksu.edu | Manhattan, KS. 66506 Peter -- Peter Cherna, Operating Systems Development Group, Commodore-Amiga, Inc. {uunet|rutgers}!cbmvax!peter peter@cbmvax.commodore.com My opinions do not necessarily represent the opinions of my employer. "If all you have is a hammer, everything looks like a nail."