RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TEditSelectAll.UpdateTarget Method

Enables or disables the action, depending on the contents of the target edit control.

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

Do not call the UpdateTarget method. This method is called automatically so that actions can update themselves according to current conditions. 

In TEditSelectAll, UpdateTarget checks whether Target is a text control that contains text. If so, UpdateTarget sets Enabled to true. If not, UpdateTarget sets Enabled to false. 

 

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