RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TEditAction.UpdateTarget Method

Enables or disables the action, depending on the currently active control in the form.

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

Do not call the UpdateTarget method. This method is called automatically when the potential target changes so that actions can update themselves accordingly. 

In TEditAction, UpdateTarget checks whether the current target object (specified by the Target parameter) is an edit control and, if the action's function requires it, that some of its text is selected. If so, UpdateTarget sets Enabled to true. If not, UpdateTarget sets Enabled to false. 

 

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