TCustomForm.OnActivate property
Handler signalled when the form instance receives focus.
Declaration
property OnActivate: TNotifyEvent read FOnActivate write FOnActivate;Description
OnActivate is a
TNotifyEvent property with the event
handler signalled when the form instance receives focus. OnActivate is
signalled when assigned from the Activate method, and occurs the first time the
form is focused at application start up, and each time focus is changed from
another form in the same application to this form instance.
Use OnDeactivate to perform actions needed when a form instance loses focus.
Use OnShow or OnHide to perform actions needed when the Visible property for a form instance is changed.
Use OnWindowStateChange to perform actions needed when a form is minimized, maximized, or changed from the fullscreen to the normal state.
Use the Application.OnActivate event handler to perform actions
needed when the Application is given focus over another process or program.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
