1 |
578 |
markom |
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
<TITLE>tixDirSelectDialog - Create and manipulate directory selection dialogs.</TITLE>
|
5 |
|
|
<Center><H2>tixDirSelectDialog - Create and manipulate directory selection dialogs.</H2></Center><hr>
|
6 |
|
|
|
7 |
|
|
</pre><H3>SYNOPSIS</H3>
|
8 |
|
|
<B>tixDirSelectDialog<I> <I>pathName ?<I>options</I></B>?
|
9 |
|
|
</pre><H3>STANDARD OPTIONS</H3>
|
10 |
|
|
<B>TixDirSelectDialog</B></I> supports all the standard options of a
|
11 |
|
|
toplevel widget. See the <B>options(n)</B></I> manual entry for details on
|
12 |
|
|
the standard options.
|
13 |
|
|
</pre><H3>WIDGET-SPECIFIC OPTIONS</H3>
|
14 |
|
|
<P>
|
15 |
|
|
<pre><code><code><code>
|
16 |
|
|
Name: <B>command</B></I>
|
17 |
|
|
Class: <B>Command</B></I>
|
18 |
|
|
Switch: <B>-command</B></I>
|
19 |
|
|
</code></code></code></pre>
|
20 |
|
|
<UL>
|
21 |
|
|
Specifies the command to be called when the user selects a directory
|
22 |
|
|
in the dialog box. The command is called with one extra argument, the
|
23 |
|
|
complete pathname of the directory. If the user cancels the selection,
|
24 |
|
|
this command is not called.
|
25 |
|
|
</UL>
|
26 |
|
|
</pre><H3>SUBWIDGETS</H3>
|
27 |
|
|
<P>
|
28 |
|
|
<pre><code><code><code>
|
29 |
|
|
Name: <B>dirbox</B></I>
|
30 |
|
|
Class: <B>TixDirSelectBox</B></I>
|
31 |
|
|
</code></code></code></pre>
|
32 |
|
|
<UL>
|
33 |
|
|
The DirSelectBox widget that consists of the main part of the dialog.
|
34 |
|
|
</UL>
|
35 |
|
|
<P>
|
36 |
|
|
<pre><code><code><code>
|
37 |
|
|
Name: <B>cancel</B></I>
|
38 |
|
|
Class: <B>Button</B></I>
|
39 |
|
|
</code></code></code></pre>
|
40 |
|
|
<UL>
|
41 |
|
|
The "Cancel" button.
|
42 |
|
|
</UL>
|
43 |
|
|
<P>
|
44 |
|
|
<pre><code><code><code>
|
45 |
|
|
Name: <B>ok</B></I>
|
46 |
|
|
Class: <B>Buton</B></I>
|
47 |
|
|
</code></code></code></pre>
|
48 |
|
|
<UL>
|
49 |
|
|
The "OK" button.
|
50 |
|
|
</UL>
|
51 |
|
|
</pre><HR>
|
52 |
|
|
</pre><H3>DESCRIPTION</H3>
|
53 |
|
|
<P>
|
54 |
|
|
The <B>tixDirSelectDialog</B></I> command creates a new window (given by
|
55 |
|
|
the <I>pathName</I></B> argument) and makes it into a DirSelectDialog
|
56 |
|
|
widget. Additional options, described above, may be specified on the
|
57 |
|
|
command line or in the option database to configure aspects of the
|
58 |
|
|
DirSelectDialog such as its cursor and relief.
|
59 |
|
|
|
60 |
|
|
The DirSelectDialog widget presents the directories in the file system
|
61 |
|
|
in a dialog window. The user can use this dialog window to navigate
|
62 |
|
|
through the file system to select the desired directory.
|
63 |
|
|
</pre><H3>WIDGET COMMANDS</H3>
|
64 |
|
|
<P>
|
65 |
|
|
The <B>tixDirSelectDialog</B></I> command creates a new Tcl command whose
|
66 |
|
|
This command may be used to invoke various operations on the
|
67 |
|
|
widget. It has the following general form:
|
68 |
|
|
<pre>
|
69 |
|
|
<I>pathName option </I></B>?<I>arg arg ...</I></B>?
|
70 |
|
|
<P>
|
71 |
|
|
</pre>
|
72 |
|
|
<I>PathName</I></B> is the name of the command, which is the same as the
|
73 |
|
|
determine the exact behavior of the command. The following commands
|
74 |
|
|
are possible for DirSelectDialog widgets:
|
75 |
|
|
<DL>
|
76 |
|
|
<DT> <I>pathName <B>cget</B></I> <I>option</I></B>
|
77 |
|
|
</I></B>
|
78 |
|
|
<DD> Returns the current value of the configuration option given by
|
79 |
|
|
<I>option</I></B>. <I>Option</I></B> may have any of the values accepted by the
|
80 |
|
|
<B>tixDirSelectDialog</B></I> command.
|
81 |
|
|
</DL>
|
82 |
|
|
<DL>
|
83 |
|
|
<DT> <I>pathName <B>configure</B></I> ?<I>option</I></B>? <I>?value option value ...</I></B>?
|
84 |
|
|
</I></B>
|
85 |
|
|
<DD> Query or modify the configuration options of the widget. If no
|
86 |
|
|
<I>option</I></B> is specified, returns a list describing all of the
|
87 |
|
|
available options for <I>pathName</I></B> (see <B>Tk_ConfigureInfo</B></I> for
|
88 |
|
|
information on the format of this list). If <I>option</I></B> is specified
|
89 |
|
|
with no <I>value</I></B>, then the command returns a list describing the
|
90 |
|
|
one named option (this list will be identical to the corresponding
|
91 |
|
|
sublist of the value returned if no <I>option</I></B> is specified). If
|
92 |
|
|
one or more <I>option-value</I></B> pairs are specified, then the command
|
93 |
|
|
modifies the given widget option(s) to have the given value(s); in
|
94 |
|
|
this case the command returns an empty string. <I>Option</I></B> may have
|
95 |
|
|
any of the values accepted by the <B>tixDirSelectDialog</B></I> command.
|
96 |
|
|
</DL>
|
97 |
|
|
<DL>
|
98 |
|
|
<DT> <I>pathName <B>popup</B></I>
|
99 |
|
|
</I></B>
|
100 |
|
|
<DD> Pops up the DirSelectDialog widget on the screen.
|
101 |
|
|
</DL>
|
102 |
|
|
<DL>
|
103 |
|
|
<DT> <I>pathName <B>subwidget <I> name ?args?</I></B>
|
104 |
|
|
</I></B>
|
105 |
|
|
<DD> When no options are given, this command returns the pathname of the
|
106 |
|
|
subwidget of the specified name.
|
107 |
|
|
|
108 |
|
|
When options are given, the widget command of the specified subwidget
|
109 |
|
|
will be called with these options.
|
110 |
|
|
</DL>
|
111 |
|
|
</pre><H3>EXAMPLE</H3>
|
112 |
|
|
<pre><code><code><code>
|
113 |
|
|
set dlg [tixDirSelectDialog .dlg -command SelectDir]
|
114 |
|
|
$dlg popup
|
115 |
|
|
|
116 |
|
|
proc SelectDir {dir} {
|
117 |
|
|
puts "You have selected \\"$dir\\""
|
118 |
|
|
}
|
119 |
|
|
</code></code></code></pre>
|
120 |
|
|
</pre><H3>KEYWORDS</H3>
|
121 |
|
|
Tix(n)
|
122 |
|
|
<hr><i>Last modified Sun Jan 19 22:34:21 EST 1997 </i> ---
|
123 |
|
|
<i>Serial 853731297</i>
|