Path: utzoo!attcan!uunet!cs.utexas.edu!rutgers!cbmvax!eric From: eric@cbmvax.commodore.com (Eric Cotton) Newsgroups: comp.sys.amiga Subject: Re: Activating Gadgets in C Message-ID: <13576@cbmvax.commodore.com> Date: 2 Aug 90 12:59:03 GMT References: <2384@ryn.esg.dec.com> Reply-To: eric@cbmvax (Eric Cotton) Organization: Commodore, West Chester, PA Lines: 28 In article <2384@ryn.esg.dec.com> barrett@meridn.enet.dec.com (Keith Barrett) writes: >I need help with gadgets in C. I created a database that uses string gadgets >as input. The problem is I can't get the gadgets to auto-activate so that you >don't have to click the mouse on the string gadget to activate it. So you >should just be able to type and when you hit return it should activate the next >gadget. I set the SELECTED bit in the gadget but all this does is make the >cursor appear but you still have to click on the gadget. > The only method I can think of would be feeding INTUITION false mouse >movement, but that seems a little messy. Any help would be appreciated. Perhaps I am misunderstanding your predicament, but the simplest method is the Intuition function ActivateGadget: Success = ActivateGadget(Gadget, Window, Request) D0 A0 A1 A2 BOOL Success; struct Gadget *Gadget; struct Window *Window; struct Requester *Request; After you have processed one gadget simply ActivateGadget the next one. -- Eric Cotton Commodore-Amiga (215) 431-9100 1200 Wilson Drive {uunet|pyramid|rutgers}!cbmvax!eric West Chester, PA 19380 "I don't find this stuff amusing anymore."