API:Vcl.ActnMan.TCustomActionManager.SetState
Delphi
procedure SetState(const Value: TActionListState); override;
C++
virtual void __fastcall SetState(const System::Actions::TActionListState Value);
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
procedure function |
protected | Vcl.ActnMan.pas Vcl.ActnMan.hpp |
Vcl.ActnMan | TCustomActionManager |
Beschreibung
Setzt die Eigenschaft State der Aktionsliste.
Vcl.ActnMan.TCustomActionManager.SetState erbt von System.Actions.TContainedActionList.SetState. Der folgende Inhalt bezieht sich auf System.Actions.TContainedActionList.SetState.
Setzt die Eigenschaft State der Aktionsliste.
Wenn Value
den Wert asSuspendedEnabled
hat, setzt SetState auch die Eigenschaft Enabled aller Aktionen in der Aktionsliste auf True. Diese Methode ist beim Entwerfen mit dem Aktionsmanager nützlich.
SetState ruft die Ereignisbehandlungsroutine für OnStateChange auf, sofern gesetzt.