2 '\" Copyright (c) 1996, Expert Interface Technologies
4 '\" See the file "license.terms" for information on usage and redistribution
5 '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
7 '\" The file man.macros and some of the macros used by this file are
8 '\" copyrighted: (c) 1990 The Regents of the University of California.
9 '\" (c) 1994-1995 Sun Microsystems, Inc.
10 '\" The license terms of the Tcl/Tk distrobution are in the file
13 '----------------------------------------------------------------------
14 .HS tixExFileSelectBox tix 4.0
18 '----------------------------------------------------------------------
20 tixExFileSelectBox \- Create and manipulate tixExFileSelectBox widgets
24 '----------------------------------------------------------------------
26 \fBtixExFileSelectBox\fI \fIpathName ?\fIoptions\fR?
29 '----------------------------------------------------------------------
32 The \fBTixExFileSelectBox\fR class does not have a super-class.
34 '----------------------------------------------------------------------
35 .SH "STANDARD OPTIONS"
37 \fBTixExFileSelectBox\fR supports all the standard options of a frame
38 widget. See the \fBoptions(n)\fR manual entry for details on the
42 '----------------------------------------------------------------------
43 .SH "WIDGET-SPECIFIC OPTIONS"
49 Class: \fBBrowseCmd\fR
50 Switch: \fB\-browsecmd\fR
53 Specifies a command to call whenever the user browses on a filename in
54 the file listbox (usually by single-clicking on the filename). The command
55 is called with one argument, the complete pathname of the file.
64 Switch: \fB\-command\fR
67 Specifies the command to be called when the user chooses on a filename
68 the file listbox (usually by double-clicking on the filename). The command
69 is called with one argument, the complete pathname of the file.
77 Switch: \fB\-dialog\fR
80 Specifies a dialog box which contains this ExFileSelectBox widget. The
81 dialog box must be a widget of the class TixShell or its
82 descendant classes. \fIThis is an internal option and should not be used
83 by application programmers.\fR
90 Switch: \fB\-dircmd\fR
93 Specifies the TCL command to be called when a file listing is needed
94 for a particular directory. If this option is not specified, by
95 default the ExFileSelectBox widget will attempt to read the directory
96 as a Unix directory. On special occasions, the application programmer
97 may want to supply a special method for reading directories: for
98 example, when he needs to list remote files. In this case, the
99 \fB\-dircmd\fR option can be used. The specified command accepts three
100 arguments: the first is the name of the directory to be listed; the
101 second is a list of file patterns, the third is a Boolean value
102 indicating whether hidden files should be listed. This command returns
103 a list of names of the files of this directory which match with the
110 Name: \fBdirectory\fR
111 Class: \fBDirectory\fR
112 Switch: \fB\-directory\fR
116 Specifies the current directory whose files and sub-directories are
117 displayed in the ExFileSelectBox.
123 Name: \fBdisableCallback\fR
124 Class: \fBDisableCallback\fR
125 Switch: \fB\-disablecallback\fR
128 A boolean value indicating whether callbacks should be disabled. When
129 set to true, the TCL command specified by the \fB\-command\fR option
130 is not executed when the \fB\-value\fR of the ExFileSelectBox
138 Name: \fBfileTypes\fR
139 Class: \fBFileTypes\fR
140 Switch: \fB\-filetypes\fR
143 Specifies the file types that can be selected from the "List Files of
144 Type:" ComboBox subwidget. The value of this option must be a TCL
145 list; each item of this list must in turn be a list of two elements.
146 The first element is a list of file patterns. The second element is a
147 string that describe these file patterns. For example:
149 tixExFileSelectBox .box -filetypes {
151 {{*.txt} {Text files}}
152 {{*.c *.h} {C source files}}
161 Name: \fBshowHidden\fR
162 Class: \fBShowHidden\fR
163 Switch: \fB\-showhidden\fR
166 Specifies whether hidden directories should be shown. By default, a
167 directory name starting with a period "\." is considered as a hidden
177 Switch: \fB\-pattern\fR
180 Specifies whether the file pattern(s) to match with the files in the
181 current directory. One or more file patterns can be given at the same
182 time. For example, {*\.c *\.h} will match all files that have either the
183 ".h" or ".c" extensions.
193 Switch: \fB\-value\fR
194 Alias: \fB\-selection\fR
197 Specifies the name of the filename currently selected by the user.
200 '----------------------------------------------------------------------
209 The button widget with the "Cancel" label.
216 Class: \fBTixComboBox\fR
219 The ComboBox subwidget under the "Directories" heading.
225 Class: \fBTixDirList\fR
228 The DirList subwidget that shows the hierarchical list of directories.
234 Class: \fBTixComboBox\fR
237 The ComboBox subwidget under the "Files" heading.
244 Class: \fBTixScrolledListBox\fR
247 The ScrolledListBox subwidget that shows the list of filenames.
253 Class: \fBCheckbutton\fR
256 The checkbutton widget with the "Show Hidden Files" label.
266 The button widget with the "OK" label.
274 Class: \fBTixComboBox\fR
277 The ComboBox subwidget under the "List Files of Type" heading.
282 '----------------------------------------------------------------------
287 The \fBtixExFileSelectBox\fR command creates a new window (given by
288 the \fIpathName\fR argument) and makes it into a
289 ExFileSelectBox widget. Additional options, described above,
290 may be specified on the command line or in the option database to
291 configure aspects of the ExFileSelectBox such as its cursor
294 The ExFileSelectBox widget is usually embedded in a
295 tixExFileSelectDialog widget. It provides an convenient method for the
296 user to select files. The style of the ExFileSelectBox widget is very
297 similar to the standard file dialog in MS Windows 3.1.
300 '----------------------------------------------------------------------
304 The \fBtixExFileSelectBox\fR command creates a new Tcl command whose
305 name is the same as the path name of the ExFileSelectBox's
306 window. This command may be used to invoke various operations on the
307 widget. It has the following general form:
311 \fIpathName option \fR?\fIarg arg ...\fR?
315 \fIPathName\fR is the name of the command, which is the same as the
316 ExFileSelectBox widget's path name. \fIOption\fR and the
317 \fIarg\fRs determine the exact behavior of the command. The following
318 commands are possible for ExFileSelectBox widgets:
321 \fIpathName \fBcget\fR \fIoption\fR
323 Returns the current value of the configuration option given by
324 \fIoption\fR. \fIOption\fR may have any of the values accepted by the
325 \fBtixExFileSelectBox\fR command.
330 \fIpathName \fBconfigure\fR ?\fIoption\fR? \fI?value option value ...\fR?
332 Query or modify the configuration options of the widget. If no
333 \fIoption\fR is specified, returns a list describing all of the
334 available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
335 information on the format of this list). If \fIoption\fR is specified
336 with no \fIvalue\fR, then the command returns a list describing the
337 one named option (this list will be identical to the corresponding
338 sublist of the value returned if no \fIoption\fR is specified). If
339 one or more \fIoption\-value\fR pairs are specified, then the command
340 modifies the given widget option(s) to have the given value(s); in
341 this case the command returns an empty string. \fIOption\fR may have
342 any of the values accepted by the \fBtixExFileSelectBox\fR command.
346 \fIpathName \fBfilter\fR
348 Forces the ExFileSelectBox widget to re-filter all the filenames
349 according to the \fB\-pattern\fR option.
352 \fIpathName \fBinvoke\fR
354 Forces the ExFileSelectBox widget to perform actions as if the user
355 has pressed the "OK" button.
358 \fIpathName \fBsubwidget \fI name ?args?\fR
360 When no options are given, this command returns the pathname of the
361 subwidget of the specified name.
363 When options are given, the widget command of the specified subwidget
364 will be called with these options.
368 '----------------------------------------------------------------------
374 '----------------------------------------------------------------------