RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TActionClientLink.SetShortCut Method

Introduces an interface for setting the shortcut for a client.

Pascal
procedure SetShortCut(Value: TShortCut); override;
C++
virtual __fastcall SetShortCut(TShortCut Value);

The associated action calls SetShortCut when its ShortCut property changes so that the action link can propagate the new ShortCut value to the client object.  

Value specifies the new value of the ShortCut property. 

As implemented in TActionLink, SetShortCut does nothing. Descendant classes override SetShortCut to set the client property that corresponds to the action's ShortCut property if the IsShortCutLinked method returns true. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!