FMX.StdActns.TSysCommonAction.OnCanActionExec

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnCanActionExec: TCanActionExecEvent read FOnCanActionExec write FOnCanActionExec;

C++

__property Fmx::Types::TCanActionExecEvent OnCanActionExec = {read=FOnCanActionExec, write=FOnCanActionExec};

Properties

Type Visibility Source Unit Parent
event published
FMX.StdActns.pas
FMX.StdActns.hpp
FMX.StdActns TSysCommonAction

Description

The event handler of this event can be used for confirmation that the user really wants to accomplish an action.

In descendant classes, the OnCanActionExec event handler can be used to get the user confirmation about executing the corresponding action. For example, in TFileExit, the event handler of this event can be used for confirmation that the user really wants to close an application. You can analyze the value of the ShortCutPressed property to define whether the event is activated by pressing a keyboard key or by mouse clicking.

See Also