Class ::tycho::EditSearch


Inherits: ::tycho::Query - Source File - Contents: itk_options - public methods
Create a dialog box for searching for text in an Edit object. This dialog box should be child window of the Edit object so that it is removed when the parent is removed. To do this, just give it a name that is the name of the Edit window (or its top-level parent) with an additional field appended after a period. For example, if the name of the top-level object is ".file0", the search object could be ".file0.search".

Itk_options

-backwards 0
Set or change the configuration for forwards or backwards search. The value of the option should be 0 or 1.
-chfindcommand
The command to execute on a change and find command.
-edit
Specify the Edit object on which the search will occur.
-findcommand
The command to execute on a find command.
-nochange 0
If this option value is non-zero, do not permit changes.

Public constructs

Public Methods

change
Change the text in the selection to the value in the "Change To" box.
changeAndFind
Change the text in the selection to the value in the "Change To" box and find the next instance that matches the pattern.
clearFindMatch
Clear the highlighting in the text window due to a search.
find {start {}}
Find and mark the specified pattern in the associated Edit object. The search starts at the insertion cursor, unless the optional argument is given, in which case it starts at the specified point. The first match found is selected. The rest are tagged and the background color changed.

Index of classes



Author: Edward A. Lee, Joel R. King
Version: @(#)EditSearch.itcl 1.26 11/13/96
Copyright: (c) 1995-1996 The Regents of the University of California.