System.Actions.TContainedActionLink.IsShortCutLinked
Delphi
function IsShortCutLinked: Boolean; virtual;
C++
virtual bool __fastcall IsShortCutLinked();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | System.Actions.pas System.Actions.hpp |
System.Actions | TContainedActionLink |
Description
Retrieves whether the ShortCut property for the action and for the client of the action link are linked.
TContainedActionLink descendants call IsShortCutLinked to determine whether they need to propagate changes to the action's ShortCut property to the corresponding ShortCut property of the client object:
- When IsShortCutLinked returns True, the action controls the ShortCut property; changes made to the action's ShortCut property are reflected by changes to the corresponding property of the client object.
- When IsShortCutLinked returns False, the client object is not influenced by the ShortCut property of its action, either because it does not have a corresponding property, or, more commonly, because it manages the value of its corresponding property independently.
As implemented in TContainedActionLink, IsShortCutLinked merely checks that the Action property specifies a descendant of TContainedAction (that is, it is an action that has a ShortCut property), and if so, returns True.
Descendant classes can override IsShortCutLinked to determine whether the ShortCut property is linked with the appropriate client property.
As implemented in TActionLink:
- IsShortCutLinked returns
False
if the action, assigned to the action link, belongs to TCustomViewAction and the component of this action equals the client of the action link. - Otherwise, IsShortCutLinked returns
True
.