![]() |
ActiveTcl User Guide
|
![]() |
lection box widget iwidgets::extfileselectionbox pathName ?op- tions? itk::Widget <- iwidgets::Extfileselectionbox
activeBackground background borderWidth cursor
tions.
associated options.
labelFont
above associated options.
sashCursor
above associated options.
activeRelief elementBorderWidth
jumptroughColor
above associated options.
textBackground textFont
above associated options.
option would be used as follows:
-automount {export tmp_mnt}
lection box: n, s, e, w, top, or bottom. The default is s.
sent working 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.
fault is Directories".
ue may be given in any of the forms acceptable to Tcl_GetBoolean.
mask as arguments. The command should return a list of files
which will be placed into the file list.
is Files".
may be given in any of the forms acceptable to Tcl_GetBoolean.
ular, directory, or any. The default is regular.
key in the filter combobox widget.
fault is Filter".
value may be given in any of the forms acceptable to Tcl_Get*-
specified in any of the forms acceptable to Tk_GetPixels. The
default is 300 pixels.
valid. The default is {bell}.
files match the mask. The default is ".
directory in the directory list.
file in the files list.
key in the selection combobox widget.
default is Selection".
value may be given in any of the forms acceptable to Tcl_Get*-
ified in any of the forms acceptable to Tk_GetPixels. The de-
fault is 350 pixels.
_________________________________________________________________
file selection box which is slightly different than the filese- lectionbox widget. The differences are mostly cosmetic in that the listboxes are within a panedwindow and the entryfields for the filter and selection have been replaced by comboboxes. Other than that the interface is practically the same.
mand whose name is pathName. This command may be used to invoke various operations on the widget. It has the following general form:
pathName option ?arg arg ...?
gets:
pathName cget option Returns the current value of the configura- tion option given by option. Option may have any of the values accepted by the iwidgets::extfileselectionbox command. pathName childsite Returns the child site widget path name. pathName con*- figure ?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 path-
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::extfileselectionbox command. pathName filter Update the current contents of the extended file selection box based on the current filter combobox value. pathName get Returns the cur- rent value of the selection combobox widget.
fileselection box. See the scrolledlistbox widget manual entry
for details on the dirs component item.
lection box. See the scrolledlistbox widget manual entry for
details on the files component item.
value. See the combobox widget manual entry for details on the
filter component item.
rently selected file value. See the combobox widget manual en- try for details on the selection component item.
package require Iwidgets 4.0
iwidgets::extfileselectionbox .fsb
pack .fsb -padx 10 -pady 10 -fill both -expand yes