RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSearchFindNext.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 TSearchFindNext, UpdateTarget ignores the current target object (specified by the Target parameter). Instead, it checks the associated TSearchFind action (the SearchFind property), and sets Enabled to true if the search dialog has already specified a search string. If SearchFind is not set, or if there is no search string in its associated dialog, UpdateTarget sets Enabled to false. 

 

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