TIX(3) | Tix Built-In Commands | TIX(3) |
tixExFileSelectBox - Create and manipulate tixExFileSelectBox widgets
tixExFileSelectBox pathName ?options?
The TixExFileSelectBox class does not have a super-class.
TixExFileSelectBox supports all the standard options of a frame widget. See the options(n) manual entry for details on the standard options.
[-browsecmd browseCmd] Specifies a command to call whenever the user browses on a filename in the file listbox (usually by single-clicking on the filename). The command is called with one argument, the complete pathname of the file. [-command command] Specifies the command to be called when the user chooses on a filename the file listbox (usually by double-clicking on the filename). The command is called with one argument, the complete pathname of the file. [-dialog dialog] Specifies a dialog box which contains this ExFileSelectBox widget. The dialog box must be a widget of the class TixShell or its descendant classes. This is an internal option and should not be used by application programmers. [-dircmd dircmd] Specifies the TCL command to be called when a file listing is needed for a particular directory. If this option is not specified, by default the ExFileSelectBox widget will attempt to read the directory as a Unix directory. On special occasions, the application programmer may want to supply a special method for reading directories: for example, when he needs to list remote files. In this case, the -dircmd option can be used. The specified command accepts three arguments: the first is the name of the directory to be listed; the second is a list of file patterns, the third is a Boolean value indicating whether hidden files should be listed. This command returns a list of names of the files of this directory which match with the file patterns.
Name: directory Class: Directory Switch: -directory Alias: -dir
[-showhidden showHidden] Specifies whether hidden directories should be shown. By default, a directory name starting with a period "." is considered as a hidden directory. [-pattern pattern] Specifies whether the file pattern(s) to match with the files in the current directory. One or more file patterns can be given at the same time. For example, {*.c *.h} will match all files that have either the ".h" or ".c" extensions.
tixExFileSelectBox .box -filetypes {
{{*} {All files}}
{{*.txt} {Text files}}
{{*.c *.h} {C source files}}
}
Name: value Class: Value Switch: -value Alias: -selection
Name: cancel Class: Button
Name: dir Class: TixComboBox
Name: dirlist Class: TixDirList
Name: file Class: TixComboBox
Name: filelist Class: TixScrolledListBox
Name: hidden Class: Checkbutton
Name: ok Class: Button
Name: types Class: TixComboBox
The tixExFileSelectBox command creates a new window (given by the pathName argument) and makes it into a ExFileSelectBox widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the ExFileSelectBox such as its cursor and relief.
The ExFileSelectBox widget is usually embedded in a tixExFileSelectDialog widget. It provides an convenient method for the user to select files. The style of the ExFileSelectBox widget is very similar to the standard file dialog in MS Windows 3.1.
The tixExFileSelectBox command creates a new Tcl command whose name is the same as the path name of the ExFileSelectBox's window. This command may be used to invoke various operations on the widget. It has the following general form:
When options are given, the widget command of the specified subwidget will be called with these options.
Tix(n)
4.0 | Tix |