[comp.sys.amiga] Activate StringGadget in Requester

barbey%elma.epfl.ch@cunyvm.cuny.edu (Stephane Barbey) (09/14/89)

>I am having difficulty opening a StringGadget in a Requester which will allow
>the user to type without first clicking the mouse.  I have set RELVERIFY
>and ENDGADGET in the Gadget structure and I set SELECTED before I issue my
>Request(&reqtr,window).  Everything works except that I must click the LMB
>in the gadget window before I can type text to the window.

I think the SELECTED flag only works with boolean gadgets. In order to activate
a string gadget, one has to use the ActivateGadget(...) function. This is a 1.2
function, and it is therefore not documented in the original Intuition RKM (not
a flame ! I'm glad they added it to intuition.library).

I've not the autodocs online, but I think the syntax is something like
ActivateGadget(struct Gadget *,struct Window *,struct Requester *). You have to
care that your window is active (and your requester opened), if you want this
function to work.

-Stephane Barbey
barbey@elma.epfl.ch