[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Handler signalled when the form instance receives focus.
Source position: forms.pp line 797
public property TCustomForm.OnActivate : TNotifyEvent |
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.
Remark: | OnActivate is not signalled the very first time a maximized or fullscreen form is activated. This is done to suppress the notification until resize and bounds changes are handled in delayed events that occur during LCL component streaming. |
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.
|
Signals the OnActivate event handler when a form is focused in an application. |
|
|
Performs actions when the form loses focus. |
|
|
Handler signalled when the form is deactivated (loses focus). |
|
|
Indicates whether the form is displayed in a minimized, maximized, full-screen or normal state. |
|
|
Handler called when the form becomes visible. |
|
|
Handler called when the form is being hidden. |
|
|
Handler called when the form is minimized, maximized or restored. |
|
|
Indicates if the control is visible on its parent. |
|
|
Event handler signalled when an Activate message is handled in the application. |
|
|
Inserts an asynchronous call into the queue. |
|
|
Event handler signalled when the Bounds for the control have been changed. |
|
|
Notification handler for a resize of the control. |
Version 4.0 | Generated 2025-05-03 | Home |