Enable the specified gadget.
Source position: intuition.pas line 3481
procedure OnGadget( |
Gadget: PGadget; |
Window: PWindow; |
Requester: PRequester |
); |
Gadget |
|
A pointer to the gadget that you want disabled |
Window |
|
A pointer to a window structure containing the gadget or containing the requester which contains the gadget |
Requester |
|
A pointer to a requester (may by nil if this isn't a requester gadget (i.e. GTYP_REQGADGET is not set)). |
This command enables the specified gadget. When a gadget is enabled, these things happen:
The window parameter must point to the window which contains the gadget, or which contains the requester that contains the gadget The requester parameter must only be valid if the gadget has the GTYP_REQGADGET flag set, a requirement for all requester gadgets.
Note: it's never safe to tinker with the gadget list yourself. Don't supply some gadget that Intuition hasn't already processed in the usual way.
Note: This function will update the gadget (unlike the original function which would update all gadgets in the window).
|
Disable the specified gadget. |