ActiveTcl User Guide
|
||
tion box widget iwidgets::fileselectionbox pathName ?options? itk::Widget <- iwidgets::Fileselectionbox
activeBackground background borderWidth cursor
tions.
textBackground textFont
associated options.
labelFont
above associated options.
activeRelief elementBorderWidth
jumptroughColor
above associated options.
textBackground textFont
above associated options.
option would be used as follows:
-automount {export tmp_mnt}
s, e, w, top, bottom, or center. The default is s.
list item is double clicked. Typically this occurs when mouse button 1 is double clicked over a file name.
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 entry widget.
default is Filter".
may be given in any of the forms acceptable to Tcl_GetBoolean.
specified in any of the forms acceptable to Tk_GetPixels. The
default is 360 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 entry widget.
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 470 pixels.
_________________________________________________________________
box similar to the OSF/Motif standard Xmfileselectionbox compos- ite widget. The fileselectionbox is composed of directory and file scrolled lists as well as filter and selection entry fields.
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.
whose name is pathName. This command may be used to invoke vari- ous operations on the widget. It has the following general form:
pathName option ?arg arg ...?
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::fileselectionbox 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::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.
tion box. See the scrolledlistbox widget manual entry for de-
tails on the dirs component item.
box. See the scrolledlistbox widget manual entry for details on
the files component item.
filter value. See the entryfield widget manual entry for de-
tails on the filter component item.
currently selected file value. See the entryfield widget manu- al entry for details on the selection component item.
package require Iwidgets 4.0
iwidgets::fileselectionbox .fsb
pack .fsb -padx 10 -pady 10 -fill both -expand yes