CompuServe Thread

Forum unknown · Programming

#String Gadgets

5 messages in this thread
#48620From: Mike BerroJan 13, 1987 11:36 PM
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
#48639From: Don Curtis/SYSOPJan 14, 1987 12:31 AM
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
#48639From: Don Curtis/SYSOPJan 14, 1987 12:31 AM
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
#48640From: Larry Phillips/ICUGJan 14, 1987 12:39 AM
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.
#48640From: Larry Phillips/ICUGJan 14, 1987 12:39 AM
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.