System.Actions.TContainedAction.HandleShortCut

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function HandleShortCut: Boolean; virtual;

C++

virtual bool __fastcall HandleShortCut(void);

プロパティ

種類 可視性 ソース ユニット
function protected
System.Actions.pas
System.Actions.hpp
System.Actions TContainedAction

説明

ユーザーがショートカットのいずれかを入力した際に、アクションを実行します。

アプリケーションは、protected HandleShortCut メソッドを呼び出すことはできません。このアクション リストの FMX.ActnList.TCustomActionList.DialogKey または Vcl.ActnList.TCustomActionList.IsShortCut メソッドは、ショートカット キーの組み合わせと、アクションの ShortCut または SecondaryShortCuts プロパティとの間で一致するものを見つけた際に、HandleShortCut を呼び出します。

HandleShortCut は、System.Classes.TBasicAction.Execute を呼び出し、この関数を実行するアクションを発生させます。HandleShortCut は、System.Classes.TBasicAction.Execute が返す値を返します。

下位クラスで HandleShortCut をオーバーライドし、ユーザーがアクションのショートカット キーを入力した際に他の形で応答させることもできます。

関連項目