System.Actions.TContainedAction.SetEnabled

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

Delphi

procedure SetEnabled(Value: Boolean); virtual;

C++

virtual void __fastcall SetEnabled(bool Value);

プロパティ

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

説明

アクションの Enabled プロパティを指定された Value に設定し、その Value をアクションのすべてのクライアントに伝播します。


SetEnabled の動作は、ActionList アクション リストの State によって異なります。

  • State の値が asSuspended であれば、SetEnabled は、アクションの Enabled プロパティだけを指定された Value に設定します。
  • State の値が asSuspendedEnabled であれば、SetEnabled は、アクションとアクションのすべてのクライアントの Enabled プロパティを True に設定します。
  • それ以外の場合には、SetEnabled は、アクションの Enabled プロパティを指定された Value に設定し、その Value をアクションのすべてのクライアントに伝播します。

関連項目