Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!lll-lcc!csustan!csun!psivax!sdcrdcf!usc-oberon!bacall!papa From: papa@bacall.UUCP Newsgroups: comp.sys.amiga Subject: Re: Question on requestors Message-ID: <2290@bacall.UUCP> Date: Thu, 19-Feb-87 19:21:47 EST Article-I.D.: bacall.2290 Posted: Thu Feb 19 19:21:47 1987 Date-Received: Sat, 21-Feb-87 07:08:09 EST References: <8136@decwrl.DEC.COM> Organization: CS&CE Depts, U.S.C., Los Angeles, CA Lines: 26 > Ok, my turn for a simple one: > > I have a requestor that contains a string gadget. All I want to do > is have the requestor come up and PRESELECT the string gadget so > if the user types, inputs will go directly to the gadget. > This is the way I do it in A-Talk (and A-Talk Plus) and it works ONLY under 1.2 since I use ActivateGadget(). 1. Set the window to use the REQSET IDCMP message. 2. Display the requester as usual. 3. When you get REQSET message, do the following: - check if version id >=33 - if it is, call ActivateGadget(gadget, window, requester) (Note that when the requester appears you WILL get a REQSET message.) That's it. I think also EGAD! uses ActivateGadget, so you might want to look in there to see if they do it differently. -- Marco Papa Felsina Software