Vcl.AppEvnts.TCustomApplicationEvents.OnRestore

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnRestore: TNotifyEvent read FOnRestore write FOnRestore;

C++

__property System::Classes::TNotifyEvent OnRestore = {read=FOnRestore, write=FOnRestore};

Properties

Type Visibility Source Unit Parent
event protected
Vcl.AppEvnts.pas
Vcl.AppEvnts.hpp
Vcl.AppEvnts TCustomApplicationEvents

Description

Occurs when the previously minimized application is restored to its normal size.

Write an OnRestore event handler to perform special processing when the application is restored from the minimized state in which it appears as an icon. An application is restored either because the user restores the application, or because the application calls the Restore method.

Note: Don't confuse restoring an application with restoring a form or window to its original size. To minimize, maximize, and restore a window or form, change the value of the WindowState property.

Note: Call the CancelDispatch method from an OnRestore event handler to prevent the application from forwarding the event to any other application events objects.

OnClick is an event handler of type TNotifyEvent.

See Also

Code Examples