TIX(3) | Tix Built-In Commands | TIX(3) |
tixDirSelectDialog - Create and manipulate directory selection dialogs.
tixDirSelectDialog pathName ?options?
TixDirSelectDialog supports all the standard options of a toplevel widget. See the options(n) manual entry for details on the standard options.
[-command command] Specifies the command to be called when the user selects a directory in the dialog box. The command is called with one extra argument, the complete pathname of the directory. If the user cancels the selection, this command is not called.
Name: dirbox Class: TixDirSelectBox
Name: cancel Class: Button
Name: ok Class: Buton
The tixDirSelectDialog command creates a new window (given by the pathName argument) and makes it into a DirSelectDialog widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the DirSelectDialog such as its cursor and relief.
The DirSelectDialog widget presents the directories in the file system in a dialog window. The user can use this dialog window to navigate through the file system to select the desired directory.
The tixDirSelectDialog command creates a new Tcl command whose name is the same as the path name of the DirSelectDialog'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.
set dlg [tixDirSelectDialog .dlg -command SelectDir] $dlg popup
proc SelectDir {dir} {
puts "You have selected \"$dir\"" }
Tix(n)
4.1 | Tix |