1 |
578 |
markom |
'\"
|
2 |
|
|
'\" Copyright (c) 1996, Expert Interface Technologies
|
3 |
|
|
'\"
|
4 |
|
|
'\" See the file "license.terms" for information on usage and redistribution
|
5 |
|
|
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
6 |
|
|
'\"
|
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
|
11 |
|
|
'\" license.tcl.
|
12 |
|
|
.so man.macros
|
13 |
|
|
'----------------------------------------------------------------------
|
14 |
|
|
.HS tixDirSelectDialog tix 4.1
|
15 |
|
|
.BS
|
16 |
|
|
'
|
17 |
|
|
'
|
18 |
|
|
'----------------------------------------------------------------------
|
19 |
|
|
.SH NAME
|
20 |
|
|
tixDirSelectDialog \- Create and manipulate directory selection dialogs.
|
21 |
|
|
'
|
22 |
|
|
'
|
23 |
|
|
'
|
24 |
|
|
'----------------------------------------------------------------------
|
25 |
|
|
.SH SYNOPSIS
|
26 |
|
|
\fBtixDirSelectDialog\fI \fIpathName ?\fIoptions\fR?
|
27 |
|
|
'
|
28 |
|
|
'
|
29 |
|
|
'----------------------------------------------------------------------
|
30 |
|
|
.SH "STANDARD OPTIONS"
|
31 |
|
|
'
|
32 |
|
|
\fBTixDirSelectDialog\fR supports all the standard options of a
|
33 |
|
|
toplevel widget. See the \fBoptions(n)\fR manual entry for details on
|
34 |
|
|
the standard options.
|
35 |
|
|
'
|
36 |
|
|
'
|
37 |
|
|
'----------------------------------------------------------------------
|
38 |
|
|
.SH "WIDGET-SPECIFIC OPTIONS"
|
39 |
|
|
'
|
40 |
|
|
'----------BEGIN
|
41 |
|
|
.LP
|
42 |
|
|
.nf
|
43 |
|
|
Name: \fBcommand\fR
|
44 |
|
|
Class: \fBCommand\fR
|
45 |
|
|
Switch: \fB\-command\fR
|
46 |
|
|
.fi
|
47 |
|
|
.IP
|
48 |
|
|
Specifies the command to be called when the user selects a directory
|
49 |
|
|
in the dialog box. The command is called with one extra argument, the
|
50 |
|
|
complete pathname of the directory. If the user cancels the selection,
|
51 |
|
|
this command is not called.
|
52 |
|
|
'----------END
|
53 |
|
|
'
|
54 |
|
|
'----------------------------------------------------------------------
|
55 |
|
|
.SH SUBWIDGETS
|
56 |
|
|
'----------BEGIN
|
57 |
|
|
.LP
|
58 |
|
|
.nf
|
59 |
|
|
Name: \fBdirbox\fR
|
60 |
|
|
Class: \fBTixDirSelectBox\fR
|
61 |
|
|
.fi
|
62 |
|
|
.IP
|
63 |
|
|
The DirSelectBox widget that consists of the main part of the dialog.
|
64 |
|
|
'----------END
|
65 |
|
|
'
|
66 |
|
|
'----------BEGIN
|
67 |
|
|
.LP
|
68 |
|
|
.nf
|
69 |
|
|
Name: \fBcancel\fR
|
70 |
|
|
Class: \fBButton\fR
|
71 |
|
|
.fi
|
72 |
|
|
.IP
|
73 |
|
|
The "Cancel" button.
|
74 |
|
|
'----------END
|
75 |
|
|
'
|
76 |
|
|
'
|
77 |
|
|
'----------BEGIN
|
78 |
|
|
.LP
|
79 |
|
|
.nf
|
80 |
|
|
Name: \fBok\fR
|
81 |
|
|
Class: \fBButon\fR
|
82 |
|
|
.fi
|
83 |
|
|
.IP
|
84 |
|
|
The "OK" button.
|
85 |
|
|
'----------END
|
86 |
|
|
'
|
87 |
|
|
.BE
|
88 |
|
|
'
|
89 |
|
|
'
|
90 |
|
|
'----------------------------------------------------------------------
|
91 |
|
|
.SH DESCRIPTION
|
92 |
|
|
'
|
93 |
|
|
.PP
|
94 |
|
|
'
|
95 |
|
|
The \fBtixDirSelectDialog\fR command creates a new window (given by
|
96 |
|
|
the \fIpathName\fR argument) and makes it into a DirSelectDialog
|
97 |
|
|
widget. Additional options, described above, may be specified on the
|
98 |
|
|
command line or in the option database to configure aspects of the
|
99 |
|
|
DirSelectDialog such as its cursor and relief.
|
100 |
|
|
|
101 |
|
|
The DirSelectDialog widget presents the directories in the file system
|
102 |
|
|
in a dialog window. The user can use this dialog window to navigate
|
103 |
|
|
through the file system to select the desired directory.
|
104 |
|
|
'
|
105 |
|
|
'----------------------------------------------------------------------
|
106 |
|
|
.SH WIDGET COMMANDS
|
107 |
|
|
.PP
|
108 |
|
|
'
|
109 |
|
|
The \fBtixDirSelectDialog\fR command creates a new Tcl command whose
|
110 |
|
|
name is the same as the path name of the DirSelectDialog's window.
|
111 |
|
|
This command may be used to invoke various operations on the
|
112 |
|
|
widget. It has the following general form:
|
113 |
|
|
'
|
114 |
|
|
.DS C
|
115 |
|
|
'
|
116 |
|
|
\fIpathName option \fR?\fIarg arg ...\fR?
|
117 |
|
|
.PP
|
118 |
|
|
.DE
|
119 |
|
|
'
|
120 |
|
|
\fIPathName\fR is the name of the command, which is the same as the
|
121 |
|
|
DirSelectDialog widget's path name. \fIOption\fR and the \fIarg\fRs
|
122 |
|
|
determine the exact behavior of the command. The following commands
|
123 |
|
|
are possible for DirSelectDialog widgets:
|
124 |
|
|
'
|
125 |
|
|
.TP
|
126 |
|
|
\fIpathName \fBcget\fR \fIoption\fR
|
127 |
|
|
'
|
128 |
|
|
Returns the current value of the configuration option given by
|
129 |
|
|
\fIoption\fR. \fIOption\fR may have any of the values accepted by the
|
130 |
|
|
\fBtixDirSelectDialog\fR command.
|
131 |
|
|
'
|
132 |
|
|
.TP
|
133 |
|
|
'
|
134 |
|
|
\fIpathName \fBconfigure\fR ?\fIoption\fR? \fI?value option value ...\fR?
|
135 |
|
|
'
|
136 |
|
|
Query or modify the configuration options of the widget. If no
|
137 |
|
|
\fIoption\fR is specified, returns a list describing all of the
|
138 |
|
|
available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
|
139 |
|
|
information on the format of this list). If \fIoption\fR is specified
|
140 |
|
|
with no \fIvalue\fR, then the command returns a list describing the
|
141 |
|
|
one named option (this list will be identical to the corresponding
|
142 |
|
|
sublist of the value returned if no \fIoption\fR is specified). If
|
143 |
|
|
one or more \fIoption\-value\fR pairs are specified, then the command
|
144 |
|
|
modifies the given widget option(s) to have the given value(s); in
|
145 |
|
|
this case the command returns an empty string. \fIOption\fR may have
|
146 |
|
|
any of the values accepted by the \fBtixDirSelectDialog\fR command.
|
147 |
|
|
'
|
148 |
|
|
.TP
|
149 |
|
|
\fIpathName \fBpopup\fR
|
150 |
|
|
'
|
151 |
|
|
Pops up the DirSelectDialog widget on the screen.
|
152 |
|
|
'
|
153 |
|
|
.TP
|
154 |
|
|
\fIpathName \fBsubwidget \fI name ?args?\fR
|
155 |
|
|
'
|
156 |
|
|
When no options are given, this command returns the pathname of the
|
157 |
|
|
subwidget of the specified name.
|
158 |
|
|
|
159 |
|
|
When options are given, the widget command of the specified subwidget
|
160 |
|
|
will be called with these options.
|
161 |
|
|
'
|
162 |
|
|
'
|
163 |
|
|
.SH EXAMPLE
|
164 |
|
|
'
|
165 |
|
|
.nf
|
166 |
|
|
set dlg [tixDirSelectDialog .dlg -command SelectDir]
|
167 |
|
|
$dlg popup
|
168 |
|
|
|
169 |
|
|
proc SelectDir {dir} {
|
170 |
|
|
puts "You have selected \\"$dir\\""
|
171 |
|
|
}
|
172 |
|
|
.fi
|
173 |
|
|
'----------------------------------------------------------------------
|
174 |
|
|
.SH KEYWORDS
|
175 |
|
|
Tix(n)
|