| 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

Fileselectionbox

The fileselectionbox iwidget presents a file selector similar to that found in the Motif widget set. It consists of a file and directory list as well as a filter and selection entry widget. A child site also exists which may be positioned at several locations via an option. An extensive option set is provided which enables specification of initial directory, search commands, filter mask, no match string, and margins. For further information, see the Fileselectionbox manpage

Components: dirs files filter hull selection
				

wm title . "Fileselectionbox Example"

##
##  Supporting procedure
##  to print the selection
##  of the dir/file
##
proc print {type} {

  if {[string match "file" $type]} {

    puts [file tail [.fsb get]]

  } else {

    puts [[.fsb component dirs] getcurselection]
  }

  return
}; # end proc print

##=========================================================
##  Create a Fileselectionbox iwidget
##=========================================================
##
iwidgets::fileselectionbox .fsb \
  -mask "*.html" \
  -directory "../" \
  -fileslabel "HTML Files" \
  -dirslabel "Iwidgets HTML Dir" \
  -selectdircommand {print dir} \
  -selectfilecommand {print file}

pack .fsb \
  -fill both \
  -expand true

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