ActiveTcl User Guide
|
||
iwidgets::finddialog pathName ?options? itk::Toplevel <- iwid- gets::Shell <- iwidgets::Dialogshell <- iwidgets::Finddialog
activeBackground activeForeground background borderWidth
tions.
selectColor
above associated options.
selectColor
associated options.
labelFont
above associated options.
buttonBoxPadX buttonBoxPadY buttonBoxPos
padX
above inherited options.
height master modality width
herited options.
title
inherited options.
clear has taken place and allow other actions to take place such
as disabling a find again menu.
identifies where exactly where in the text or scrolledtext
widget that the match is located. Should a match not be found the
match point is {}. The option is meant to be used as a means of
noti- fication that the find operation has completed and allow
other actions to take place such as disabling a find again menu
option if the match point was {}.
pattern. It may have any of the forms accepted by Tk_GetColor.
pattern. It may have any of the forms accepted by Tk_GetColor.
ing the search pattern. It may have any of the forms accepted by
ing the search pattern. It may have any of the forms accepted by
_________________________________________________________________
in conjunction with a text or scrolledtext widget to provide a means of performing search operations. The user is prompted for a text pattern to be found in the text or scrolledtext widget.
siderate of the case, or backwards.
name is pathName. This command may be used to invoke various op- erations on the widget. It has the following general form:
pathName option ?arg arg ...?
add buttonconfigure defaulthide
inherited methods.
activate center deactivate
herited methods. pathName cget option Returns the current value of the configuration option given by option. Option may have any of the values accepted by the iwidgets::finddialog command. pathName clear Clears the pattern in the entry field and the pat- tern matchin indicators in the text or scrolledtext widget. pathName configure ?option? ?value option value ...? Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available options for pathName (see Tk_ConfigureInfo for information on the format of this list). If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value re- turned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. Option may have any of the values ac- cepted by the iwidgets::finddialog command. pathName find Search for a specific text string in the text widget given by the -tex- twidget option. This method is the standard callback for the
find again action.
should be found when performing the search. See the checkbut- ton widget manual entry for details on the all component item.
in a backwards direction towards the beginning of the text or scrolledtext widget. See the checkbutton widget manual entry for details on the backwards component item.
be taken into consideration when performing the search. See the
checkbutton widget manual entry for details on the case compo- nent
item.
entryfield widget manual entry for details on the pattern com-
ponent item.
pression. See the checkbutton widget manual entry for details on the regexp component item.
package require Iwidgets 4.0
iwidgets::scrolledtext .st
pack .st
.st insert end Now is the time for all good men\n" .st insert end
to come to the aid of their country"
iwidgets::finddialog .fd -textwidget .st
.fd center .st
.fd activate