![]() |
ActiveTcl User Guide
|
![]() |
iwidgets::fileselectionbox - Create and manipulate a file selec-
tion box widget
iwidgets::fileselectionbox pathName
?options?
itk::Widget <- iwidgets::Fileselectionbox
activeBackground background borderWidth cursor
options.
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.
default is «Directories".
value may be given in any of the forms acceptable to Tcl_Get-
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.
invalid. 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
default 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
option. Option may have any of the values accepted
by the iwid- gets::fileselectionbox command.
pathName childsite
pathName configure ?option? ?value option value ...?
option is specified, returns a list describing all of the
avail- able 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
the current filter entry field value.
pathName get
tion box. See the «scrolledlistbox» widget manual
entry for details 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 details on the filter component item.
currently selected file value. See the «entryfield» widget man- ual 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
fileselectionbox, widget