| 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

Regexpfield

The regexpfield iwidget extends the entryfield by validate the entry against a regular expression pattern. The user can still use the -fixed and -validate options, but the -regexp option extends the validation capabilities for the programmer. For further information, see the Regexpfield manpage

Components: entry hull label
				

wm title . "Regexpfield Example"

##=========================================================
##	Create a few Regexpfield iwidgets
##=========================================================
##
iwidgets::regexpfield .fname \
  -labeltext "Enter First Name:" \
  -fixed 12 \
  -regexp {^[a-zA-Z]+$}

iwidgets::regexpfield .lname \
  -labeltext "Enter Last Name:" \
  -fixed 16 \
  -regexp {^[a-zA-Z]+$}

iwidgets::regexpfield .tnum \
  -labeltext "Enter Tele Num (XXX-XXX-XXXX):" \
  -fixed 12 \
  -regexp {^[-0-9]+$}

iwidgets::Labeledwidget::alignlabels .fname .lname .tnum

pack .fname .lname .tnum \
  -fill x \
  -expand 1

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