| Itcl  | Itk  | Itcl @ Wiki  | Itcl @ SF  | Tcl  | Tcl @ Wiki |
  home || iwidgets || man pages cross ref distribution docs faq  
buttonbox
calendar
canvasprintbox
canvasprintdialog
checkbox
combobox
dateentry
datefield
dialog
dialogshell
disjointlistbox
entryfield
extbutton
extfileselectionbox
extfileselectiondialog
feedback
fileselectionbox
fileselectiondialog
finddialog
hierarchy
hyperhelp
labeledframe
labeledwidget
mainwindow
menubar
messagebox
messagedialog
notebook
optionmenu
panedwindow
promptdialog
pushbutton
radiobox
regexpfield
scrolledcanvas
scrolledframe
scrolledhtml
scrolledlistbox
scrolledtext
scrolledwidget
selectionbox
selectiondialog
shell
spindate
spinint
spinner
spintime
tabnotebook
tabset
timeentry
timefield
toolbar
watch

man page | options | methods

Finddialog

The finddialog iwidget is used in conjunction with a text widget so that the text widget can be easily searched for text strings or regular expression patterns. At the top of the iwidget is an entry field where the user enters the pattern to be searched. Under the entry field are several checkbuttons that allow the user to refine the search. The checkbuttons allow the user to: have all patterns in the text widget highlighted; specify case sensitvity; allow a regular expression search; and to specify the direction of the search. For further information, see the Finddialog manpage

Components: all backwards bbox case hull pattern regexp separator
				

wm title . "Finddialog Example"

##=========================================================
##	Create a Scrolledtext iwidget
##=========================================================
##
iwidgets::scrolledtext .st \
  -labeltext "Finddialog Example" \
  -visibleitems 70x12 \
  -textfont {Courier 10} \
  -textbackground black \
  -vscrollmode dynamic \
  -hscrollmode dynamic \
  -wrap none

pack .st \
  -fill both \
  -expand true

##
##	Change the text color of the text widget
##
.st component text configure \
  -foreground green

.st import [file join / usr local tcl8.3.3 README]

  
##
##	Create a Finddialog iwidget
##
iwidgets::finddialog .fd \
  -textwidget .st \
  -patternbackground yellow \
  -patternforeground red \
  -searchbackground gray \
  -searchforeground blue

wm title .fd "Finddialog Example"

bind [.st component text]  <3> {.fd activate}



Download this sample code
man page | options | methods
 
  home || iwidgets || man pages cross ref distribution docs faq  
Copyright | Contributions | Development Team | Credits
Bugs/Comments/Suggestions about this web site