Classes.TBasicAction.OnExecute
From RAD Studio VCL Reference
Contents |
Delphi Information
From Classes.pas
property OnExecute: TNotifyEvent read FOnExecute write SetOnExecute;
Unit: Classes
Type: event
Visibility: public
Member Of: TBasicAction
C++ Information
From Classes.hpp
__property TNotifyEvent OnExecute;
Unit: Classes
Type: property
Visibility: public
Member Of: TBasicAction
Description
Occurs when the client event that is linked to it fires.
Write an OnExecute event handler when you want to respond when the user triggers the client object's default event (typically an OnClick event). For most target clients, OnExecute is triggered on a Click method, and is associated with the OnClick event.
OnExecute also occurs when the user types the shortcut (or one of the secondary shortcuts) associated with the action or its client.
Warning: If you assign an OnExecute event handler to a predefined action, the default behavior of that action will not occur.
See Also
Code Samples