RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TEditCopy.ExecuteTarget Method

Copies selected text in the target control to the Windows clipboard.

Pascal
procedure ExecuteTarget(Target: TObject); override;
C++
virtual __fastcall ExecuteTarget(TObject * Target);

Do not call the ExecuteTarget method. This method is called automatically when the action fires in response to a user action (for example, when the user selects a menu item or presses a tool button that is linked to this action). 

Target is the currently active object when the action fires. 

ExecuteTarget checks that Target is an edit control (TCustomEdit descendant), and if so, calls its CopyToClipboard method, copying the selected text to the clipboard. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!