[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)

TControl.EnabledChanged

Notifies all chtOnEnabledChanged handlers for the control.

Declaration

Source position: controls.pp line 1551

protected procedure TControl.EnabledChanged; virtual;

Description

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

TControl.DoCallNotifyHandler

  

Signals handler routines for the specified control handler type.

TControlHandlerType

  

Notification handler types.

TNotifyEvent


Version 3.2 Generated 2024-02-25 Home