[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Forms' (#lcl)

TCustomForm.OnActivate

Handler called when the form receives focus.

Declaration

Source position: forms.pp line 705

public property TCustomForm.OnActivate : TNotifyEvent
  read FOnActivate
  write FOnActivate;

Description

This handler is called when the form receives focus for the first time at application start up and then subsequently each time focus is changed from another window of the same application to this window.

For focus changes between different applications the Application.OnActivate handler is called instead.

See also

TApplication.OnActivate

  

Event handler for activation of the application.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.