![]() |
ActiveTcl User Guide
|
![]() |
iwidgets::finddialog - Create and manipulate a find dialog widget
iwidgets::finddialog pathName ?options?
itk::Toplevel <- iwidgets::Shell <- iwidgets::Dialogshell
<- iwidgets::Finddialog
activeBackground activeForeground background borderWidth
options.
selectColor
above associated options.
selectColor
associated options.
labelFont
above associated options.
buttonBoxPadX buttonBoxPadY buttonBoxPos padX
above inherited options.
height master modality width
inherited 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 operations on the widget. It has the following general form:
pathName option ?arg arg ...?
add buttonconfigure defaulthide
inherited methods.
activate center deactivate
inherited methods.
pathName cget option
option. Option may have any of the values accepted
by the iwid- gets::finddialog command.
pathName clear
indicators in the text or scrolledtext widget. pathName configure ?option? ?value option value ...?
option is specified, returns a list describing all of the avail- able 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 returned 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 accepted by the iwidgets::finddialog command.
pathName find
-textwidget 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.
expression. 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
finddialog, dialogshell, shell, widget