TControl.EnabledChanged procedure
Notifies all chtOnEnabledChanged handlers for the control.
Declaration
procedure EnabledChanged; virtualDescription
EnabledChanged is called when a new value has been assigned to
the Enabled property. It occurs after the EnabledChanging method has been
called, and the CM_ENABLEDCHANGED control message has been sent for the
control. It allows all of the
TNotifyEvent routines registered for
the
chtOnEnabledChanged control handler type to be signalled for
the new property value.
EnabledChanged calls the DoCallNotifyHandler method to signal
each of the handler routines using the chtOnEnabledChanged control handler
type. The class instance is used as the Sender argument for the event
notification.
Use AddHandlerOnEnabledChanged and RemoveHandlerOnEnabledChanged to manage the TNotifyEvent handler routines for the handler type used in the control. AddHandler and RemoveHandler can be used if the control handler type is passed as an argument.
See EnabledChanging for the actions performed before the value in Enabled is updated in its widgetset class instance.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
