Copyright (c) 1995 DSC Technologies Corporation
See the file "license.terms" for information on usage and redistribution
of this file, and for a DISCLAIMER OF ALL WARRANTIES.
@(#) fileselectionbox.n 1.21 94/12/17 16:04:44
.so man.macros .HS iwidgets::fileselectionbox iwid S Note: do not modify the .SH NAME line immediately below!
activeBackground background borderWidth cursor
foreground highlightColor highlightThickness insertBackground
insertBorderWidth insertOffTime insertOnTime insertWidth
selectBackground selectBorderWidth selectForeground
See the "options" manual entry for details on the standard options.
textBackground textFont
See the "entryfield" widget manual entry for details on the above associated options.
labelFont
See the "labeledwidget" widget manual entry for details on the above associated options.
activeRelief elementBorderWidth jump troughColor
See the "scrollbar" widget class manual entry for details on the above associated options.
textBackground textFont
See the "scrolledlistbox" widget manual entry for details on the above associated options.
Name: automount Class: Automount Command-Line Switch: -automountSpecifies a list of directory prefixes to ignore. Typically, this option would be used as follows: -automount {export tmp_mnt}
Name: childSitePos Class: Position Command-Line Switch: -childsiteposSpecifies the position of the child site in the selection box: n, s, e, w, top, bottom, or center. The default is s. Specifies a Tcl command procedure which is called when an file list item is double clicked. Typically this occurs when mouse button 1 is double clicked over a file name.
Name: directory Class: Directory Command-Line Switch: -directorySpecifies the initial default directory. The default is the present working directory.
Name: dirSearchCommand Class: Command Command-Line Switch: -dirsearchcommandSpecifies a Tcl command to be executed to perform a directory search. The command will receive the current working directory and filter mask as arguments. The command should return a list of files which will be placed into the directory list.
Name: dirsLabel Class: Text Command-Line Switch: -dirslabelSpecifies the text of the label for the directory list. The default is "Directories".
Name: dirsOn Class: DirsOn Command-Line Switch: -dirsonSpecifies whether or not to display the directory list. The value may be given in any of the forms acceptable to Tcl_GetBoolean. The default is true.
Name: fileSearchCommand Class: Command Command-Line Switch: -filesearchcommandSpecifies a Tcl command to be executed to perform a file search. The command will receive the current working directory and filter mask as arguments. The command should return a list of files which will be placed into the file list.
Name: filesLabel Class: Text Command-Line Switch: -fileslabelSpecifies the text of the label for the files list. The default is "Files".
Name: filesOn Class: FilesOn Command-Line Switch: -filesonSpecifies whether or not to display the files list. The value may be given in any of the forms acceptable to Tcl_GetBoolean. The default is true.
Name: fileType Class: FileType Command-Line Switch: -filetypeSpecify the type of files which may appear in the file list: regular, directory, or any. The default is regular.
Name: filterCommand Class: Command Command-Line Switch: -filtercommandSpecifies a Tcl command to be executed upon hitting the Return key in the filter entry widget.
Name: filterLabel Class: Text Command-Line Switch: -filterlabelSpecifies the text of the label for the filter entry field. The default is "Filter".
Name: filterOn Class: FilterOn Command-Line Switch: -filteronSpecifies whether or not to display the filter entry. The value may be given in any of the forms acceptable to Tcl_GetBoolean. The default is true.
Name: height Class: Height Command-Line Switch: -heightSpecifies the height of the selection box. The value may be specified in any of the forms acceptable to Tk_GetPixels. The default is 360 pixels.
Name: invalid Class: Command Command-Line Switch: -invalidCommand to be executed should the filter contents be proven invalid. The default is {bell}.
Name: mask Class: Mask Command-Line Switch: -maskSpecifies the initial file mask string. The default is "*".
Name: noMatchString Class: NoMatchString Command-Line Switch: -nomatchstringSpecifies the string to be displayed in the files list should no files match the mask. The default is "".
Name: selectDirCommand Class: Command Command-Line Switch: -selectdirommandSpecifies a Tcl command to be executed following selection of a directory in the directory list.
Name: selectFileCommand Class: Command Command-Line Switch: -selectfileommandSpecifies a Tcl command to be executed following selection of a file in the files list.
Name: selectionCommand Class: Command Command-Line Switch: -selectioncommandSpecifies a Tcl command to be executed upon hitting the Return key in the selection entry widget.
Name: selectionLabel Class: Text Command-Line Switch: -selectionlabelSpecifies the text of the label for the selection entry field. The default is "Selection".
Name: selectionOn Class: SelectionOn Command-Line Switch: -selectiononSpecifies whether or not to display the selection entry. The value may be given in any of the forms acceptable to Tcl_GetBoolean. The default is true.
Name: width Class: Width Command-Line Switch: -widthSpecifies the width of the selection box. The value may be specified in any of the forms acceptable to Tk_GetPixels. The default is 470 pixels.
E
The iwidgets::fileselectionbox command creates a file selection box similar to the OSF/Motif standard Xmfileselectionbox composite widget. The fileselectionbox is composed of directory and file scrolled lists as well as filter and selection entry fields. Bindings are in place such that selection of a directory list item loads the filter entry field and selection of a file list item loads the selection entry field. Options exist to control the appearance and actions of the widget.
The iwidgets::fileselectionbox command creates a new Tcl command whose name is pathName. This command may be used to invoke various operations on the widget. It has the following general form: C pathName option ?arg arg ...? Option and the args determine the exact behavior of the command. The following commands are possible for fileselectionbox widgets:
pathName cget option Returns the current value of the configuration option given by option. Option may have any of the values accepted by the iwidgets::fileselectionbox command.
pathName childsite Returns the child site widget path name.
pathName configure ?option? ?value option value ...? Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available 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::fileselectionbox command.
pathName filter Update the current contents of the file selection box based on the current filter entry field value.
pathName get Returns the current value of the selection entry widget.
Name: dirs Class: ScrolledlistboxThe dirs component is the directory list box for the file selection box. See the "scrolledlistbox" widget manual entry for details on the dirs component item.
Name: files Class: ScrolledlistboxThe files component is the file list box for the file selection box. See the "scrolledlistbox" widget manual entry for details on the files component item.
Name: filter Class: EntryfieldThe filter component is the entry field for user input of the filter value. See the "entryfield" widget manual entry for details on the filter component item.
Name: selection Class: EntryfieldThe selection component is the entry field for user input of the currently selected file value. See the "entryfield" widget manual entry for details on the selection component item.