Enable Event

Object List Next Object

Defined By:
ButtonGadget

Description:

Keeps the "enabled" state of the gadget correct.

Usage:

Sub Enable()

Details:

The Enable event commonly contains the code to determine if the gadget should be enabled or disabled. The ObjectBox that the gadget is embedded into will continuously cause Enable events, which commonly enable or disable the gadgets under certain conditions.

Enabled should be called as much as possible to keep the "enabled" state of the gadget correct. Because it must be called so often, the Enable method should be as short and simple as possible.

See Also:
ObjectBox