Events triggered when a control gains or loses input focus, OnEnter and OnExit and are fired from DoEnter and DoExit , which you, as a component developer, must override:
type TMyControl = class(TCustomControl) protected procedure DoEnter; override; procedure DoExit; override; end; implementation { TMyControl } procedure TMyControl.DoEnter; begin inherited;
source share