Forum unknown
· Programming
#String Gadgets
5 messages in this thread
I heard that there was a way to make string gadgets active when you
AddGadget() them using 1.2. I tried selecting the SELECTED flag, but this
only gives me the cursor within the gadget; the user still has to select
the gadget with the mouse. I don't have the 1.2 docs yet, can anyone help
me? Thanx! —Mike
Mike,
Its a new function called ActivateGadget(), the structure is:
success = ActivateGadget(Gadget, Window, Request)
BOOL success;
struc Gadget *Gadget;
struc Window *Window;
struc Requester *Request;
There is more to it, and even the Beta 1.2 docs have the full
stuff, if you can get ahold of the doc. Don
Mike,
Its a new function called ActivateGadget(), the structure is:
success = ActivateGadget(Gadget, Window, Request)
BOOL success;
struc Gadget *Gadget;
struc Window *Window;
struc Requester *Request;
There is more to it, and even the Beta 1.2 docs have the full
stuff, if you can get ahold of the doc. Don
Mike,
The routine you want is ActivateGadget(). Here's how…
Success = ActivateGadget(Gadget, Window, Request)
D0 A0 A1 A2
BOOL Success
struct Gadget *Gadget
struct Window *Window
struct Request *Request
The Window must point to a Window with the Gadget in it. If the Gadget is in
a Requester, the Requester pointer must also be passed. The Requester parameter
must only be valid if the Gadget has an REQGADGET flag.
Requirements for success…
– The Window must be active.
– No other gadgets may be in use (incl sizing, dragging, etc.)
– If in a Requester, the Requester must be active (REQSET & REQCLEAR)
– The right mouse button cannot be held down.
Regards, Larry.
Mike,
The routine you want is ActivateGadget(). Here's how…
Success = ActivateGadget(Gadget, Window, Request)
D0 A0 A1 A2
BOOL Success
struct Gadget *Gadget
struct Window *Window
struct Request *Request
The Window must point to a Window with the Gadget in it. If the Gadget is in
a Requester, the Requester pointer must also be passed. The Requester parameter
must only be valid if the Gadget has an REQGADGET flag.
Requirements for success…
– The Window must be active.
– No other gadgets may be in use (incl sizing, dragging, etc.)
– If in a Requester, the Requester must be active (REQSET & REQCLEAR)
– The right mouse button cannot be held down.
Regards, Larry.