Sign in Join
FPDoc Onlineexperiment

TWinControl.OnExit property

Member of TWinControlpublicIn unit Controls

Event handler signalled when the control loses focus.

Declaration

pascal
property OnExit: TNotifyEvent read FOnExit write FOnExit;

Description

OnExit is a TNotifyEvent property with the event handler signalled when the control loses focus. It is signalled (when assigned) from the DoExit method, and occurs when a CM_EXIT control message is received and handled for the control.

The Sender argument contains the object instance for the event notification. It must be cast to TControl, TWinControl, or a other descendent to access properties or methods specific to the implementation.

OnExit occurs after the OnEditingDone event handler which is signalled when the content for the control has been modified. Descendent classes generally perform any actions needed to maintain their internal state before OnExit is signalled. The notable exception is TCustomMaskEdit which can be configured to perform validation after the event.

See also

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