Sign in Join
FPDoc Onlineexperiment

TMaskEdit.Enabled property

Member of TMaskEditpublishedIn unit MaskEdit

Determines whether the control responds to mouse or keyboard input.

Declaration

pascal
property Enabled:;

Description

Enabled is a Boolean property which indicates whether the control can respond to focus, input, or mouse events. The default value for the property is True. When Enabled is set to False, the control is displayed with a "grayed-out" appearance. It is unable to receive input focus, handle keyboard navigation or input, respond to mouse click events, or execute its Action.

Changing the value for the property causes additional actions to be performed. EnabledChanging is called to signal any chtOnEnabledChanging control handlers assigned for the control. The property value is updated, and a CM_ENABLEDCHANGED control message is dispatched for the control. The EnabledChanged method is called to signal any chtOnEnabledChanged control handlers for the control.

Use IsEnabled to check the effective enabled state for both the control and its Parent control (when assigned).

This description is the one of Controls.TControl.Enabled.

See also

  • EnabledChanging
  • EnabledChanged
  • DoCallNotifyHandler
  • IsEnabled

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