| 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

Extfileselectionbox

The extfileselectionbox iwidget makes file selection easier by giving the user an easier navigation mechanism. The user can navigate through directories by double clicking on a directory in the left hand listbox. The user can then choose the file they want by selecting that file from the right side listbox. Above the listboxes is a combobox that is used to filter the directory contents. The combobox below the listboxes displays the current selection. The extfileselectionbox extends the fileselectionbox by adding the paned window and the comboboxes. For further information, see the Extfileselectionbox manpage

Components: dirs files filter hull listpane selection
				

wm title . "Extfileselectionbox Example"

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

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

    puts [file tail [.efsb get]]

  } else {

    puts [[.efsb component dirs] getcurselection]
  }

  return
}; # end proc print

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

pack .efsb \
  -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