RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSearchFind Class

TSearchFind is the standard action for displaying a find dialog.

Pascal
TSearchFind = class(TSearchAction);
C++
class TSearchFind : public TSearchAction;

StdActns

Add TSearchFind to an action list to add a modeless find dialog to your application. Controls such as menu items and tool buttons linked to this action cause the application to display the find dialog or bring it to the fore. 

TSearchFind is designed to work with an edit control (TCustomEdit descendant) as a target. It automatically disables itself if the active control in a form is not an edit control. 

Search actions represent a modeless dialog. As a result, the OnAccept event occurs not when the user exits the dialog, but when the dialog first appears or comes into focus. When the user directs the dialog to search for a string, TSearchFind automatically performs that search, selecting the specified text in the target edit control. 

 

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