Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!cbmvax!peter From: peter@cbmvax.commodore.com (Peter Cherna) Newsgroups: comp.sys.amiga Subject: Re: Activating Gadgets in C Message-ID: <13639@cbmvax.commodore.com> Date: 6 Aug 90 15:19:03 GMT References: <2384@ryn.esg.dec.com> <13581@cbmvax.commodore.com> <325@modcomp.UUCP> Reply-To: peter@cbmvax (Peter Cherna) Organization: Commodore, West Chester, PA Lines: 23 In article <325@modcomp.UUCP> kevin@modcomp.UUCP (Kevin Smith) writes: >When I upgraded to 1.2 I was excited to have new gadget functions >but when I used ActivateGadget it still didn't work since I wasn't waiting >for ACTIVEWINDOW. I must of cussed at this problem for two weeks before >somebody gave me a working solution. Actually I had this problem when >popping up a requester with gadgets in it and the string gadget would >never activate. The solution I got and still use today is to >open up the requester then use a Delay() of a couple seconds and then >do an ActivateGadget(). Using Delay() only mostly works. Its success would depend on what processor you're running and what load the CPU is under, among other things. Waiting for ACTIVEWINDOW is reliable, and documented in the 1.3 RKMs. >Kevin Smith uunet!modcomp!kevin Peter -- Peter Cherna, Software Engineer, Commodore-Amiga, Inc. {uunet|rutgers}!cbmvax!peter peter@cbmvax.cbm.commodore.com My opinions do not necessarily represent the opinions of my employer. "This is a one line proof...if we start sufficiently far to the left."