Unit 'intuition' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

OffGadget

Disable the specified gadget.

Declaration

Source position: intuition.pas line 3479

procedure OffGadget(

  Gadget: PGadget;

  Window: PWindow;

  Requester: PRequester

);

Arguments

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)).

Description

This command disables the specified gadget. When a gadget is disabled, 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).

See also

OnGadget

  

Enable the specified gadget.

AddGadget

  

Add a gadget to the gadget list of a window.

RefreshGadgets

  

Refresh (redraw) the gadget display.


Documentation generated on: 2021-07-30