System.Classes.TBasicAction.OnExecute

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property OnExecute: TNotifyEvent read FOnExecute write SetOnExecute;

C++

__property TNotifyEvent OnExecute = {read=FOnExecute, write=SetOnExecute};

Properties

Type Visibility Source Unit Parent
event public
System.Classes.pas
System.Classes.hpp
System.Classes TBasicAction

Description

Occurs when the execute event, of a client linked to the action, 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 is called in the Execute method.

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 Examples