Sign in Join
FPDoc Onlineexperiment

TWinControl.CMEnabledChanged procedure

Member of TWinControlprotectedIn unit Controls

Handler signalled when the Enabled property has been changed.

Declaration

pascal
procedure CMEnabledChanged(var Message: TLMessage); message

Arguments

Message

CM_ENABLEDCHANGED control message which triggered the handler.

Description

If the control is not Enabled and has a Parent control, the RemoveFocus method is called to defocus the control on its Parent form. If the window Handle has been allocated for the control, the EnableWindow routine in the LCL interface is called to set the enabled state for the handle.

CMEnabledChanged calls the inherited method prior to exit to Invalidate the control.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.