Vcl.CategoryButtons.TButtonItemActionLink.IsOnExecuteLinked

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

Delphi

function IsOnExecuteLinked: Boolean; override;

C++

virtual bool __fastcall IsOnExecuteLinked(void);

プロパティ

種類 可視性 ソース ユニット
function protected
Vcl.CategoryButtons.pas
Vcl.CategoryButtons.hpp
Vcl.CategoryButtons TButtonItemActionLink

説明

アクションの OnExecute イベント ハンドラが、クライアントの実行イベント ハンドラにリンク付けされているかどうかをチェックする、インターフェイスを導入します。

Vcl.CategoryButtons.TButtonItemActionLink.IsOnExecuteLinked は System.Classes.TBasicActionLink.IsOnExecuteLinked を継承しています。以下の内容はすべて System.Classes.TBasicActionLink.IsOnExecuteLinked を参照しています。

アクションの OnExecute イベント ハンドラが、クライアントの実行イベント ハンドラにリンク付けされているかどうかをチェックする、インターフェイスを導入します。

TBasicActionLink クラスでは、IsOnExecuteLinked は、単にに True を返し、何もチェックしません。

IsOnExecuteLinked をオーバーライドすることにより、アクションの OnExecute イベント ハンドラが、クライアントの適切な実行イベントのイベント ハンドラにリンク付けされているかどうかを、チェックさせることができます。 アクションとクライアントは、TBasicActionLink アクション リンクによって関連付けられます。 通常、クライアントの実行イベントは OnClick イベントです。

下位クラス オブジェクトによってリンク付けされているクラス(FMX.Forms.TForm など)が、適した実行イベントをサポートしていない場合、IsOnExecuteLinked は常に False を返します。

関連項目