Debian Codegraph @

demos/html/fileselectiondialog.n.html

raw
1 <TITLE>fileselectiondialog - Create and manipulate a file selection dialog widget</TITLE>
2 <H1>fileselectiondialog - Create and manipulate a file selection dialog widget</H1>
3
4 </pre><H2>SYNOPSIS</H2>
5 <B>fileselectiondialog<I> <I>pathName </I>?<I>options</I>?
6 </pre><H2>INHERITANCE</H2>
7 itk::Toplevel &lt;- Shell &lt;- Dialogshell &lt;- Dialog &lt;- Fileselectiondialog
8 </pre><H2>STANDARD OPTIONS</H2>
9 <P>
10 <table cellpadding=5>
11 <td valign=top>
12 <B>activeBackground</B><br>
13 <B>foreground</B><br>
14 <B>insertBorderWidth</B><br>
15 <B>selectBackground</B><br>
16 </td>
17 <td valign=top>
18 <B>background</B><br>
19 <B>highlightColor</B><br>
20 <B>insertOffTime</B><br>
21 <B>selectBorderWidth</B><br>
22 </td>
23 <td valign=top>
24 <B>borderWidth</B><br>
25 <B>highlightThickness</B><br>
26 <B>insertOnTime</B><br>
27 <B>selectForeground</B><br>
28 </td>
29 <td valign=top>
30 <B>cursor</B><br>
31 <B>insertBackground</B><br>
32 <B>insertWidth</B><br>
33 </td>
34 </table>
35 <P>
36 See the <A HREF="http://www.sco.com/Technology/tcl/man/tk_man/options.n.html"> "options" </A> manual entry for details on the standard options.
37 </pre><H2>ASSOCIATED OPTIONS</H2>
38 <P>
39 <table cellpadding=5>
40 <td valign=top>
41 <B>textBackground</B><br>
42 </td>
43 <td valign=top>
44 <B>textFont</B><br>
45 </td>
46 <td valign=top>
47 </td>
48 <td valign=top>
49 </td>
50 </table>
51 <P>
52 See the <A HREF="entryfield.n.html"> "entryfield" </A> widget manual entry for details on the above associated
53 options.
54 <P>
55 <table cellpadding=5>
56 <td valign=top>
57 <B>childSitePos</B><br>
58 <B>dirsOn</B><br>
59 <B>filesOn</B><br>
60 <B>invalid</B><br>
61 <B>selectionOn</B><br>
62 </td>
63 <td valign=top>
64 <B>directory</B><br>
65 <B>filesLabel</B><br>
66 <B>fileType</B><br>
67 <B>mask</B><br>
68 </td>
69 <td valign=top>
70 <B>dirsLabel</B><br>
71 <B>filesLabelOn</B><br>
72 <B>filterLabel</B><br>
73 <B>noMatchString</B><br>
74 </td>
75 <td valign=top>
76 <B>dirSearchCommand</B><br>
77 <B>fileSearchCommand</B><br>
78 <B>filterOn</B><br>
79 <B>selectionLabel</B><br>
80 </td>
81 </table>
82 <P>
83 See the <A HREF="fileselectionbox.n.html"> "fileselectionbox" </A> widget manual entry for details on the above
84 associated options.
85 <P>
86 <table cellpadding=5>
87 <td valign=top>
88 <B>labelFont</B><br>
89 </td>
90 <td valign=top>
91 </td>
92 <td valign=top>
93 </td>
94 <td valign=top>
95 </td>
96 </table>
97 <P>
98 See the <A HREF="labeledwidget.n.html"> "labeledwidget" </A> widget manual entry for details on the above
99 associated options.
100 <P>
101 <table cellpadding=5>
102 <td valign=top>
103 <B>textBackground</B><br>
104 </td>
105 <td valign=top>
106 <B>textFont</B><br>
107 </td>
108 <td valign=top>
109 </td>
110 <td valign=top>
111 </td>
112 </table>
113 <P>
114 See the <A HREF="scrolledlistbox.n.html"> "scrolledlistbox" </A> widget manual entry for details on the above
115 associated options.
116 <P>
117 <table cellpadding=5>
118 <td valign=top>
119 <B>activeRelief</B><br>
120 </td>
121 <td valign=top>
122 <B>elementBorderWidth</B><br>
123 </td>
124 <td valign=top>
125 <B>jump</B><br>
126 </td>
127 <td valign=top>
128 <B>troughColor</B><br>
129 </td>
130 </table>
131 <P>
132 See the <A HREF="http://www.sco.com/Technology/tcl/man/tk_man/scrollbar.n.html"> "scrollbar" </A> widget class manual entry for details on the above
133 associated options.
134
135 </pre><H2>INHERITED OPTIONS</H2>
136 <P>
137 <table cellpadding=5>
138 <td valign=top>
139 <B>buttonBoxPadX</B><br>
140 <B>padY</B><br>
141 </td>
142 <td valign=top>
143 <B>buttonBoxPadY</B><br>
144 <B>separator</B><br>
145 </td>
146 <td valign=top>
147 <B>buttonBoxPos</B><br>
148 <B>thickness</B><br>
149 </td>
150 <td valign=top>
151 <B>padX</B><br>
152 </td>
153 </table>
154 <P>
155 See the <A HREF="dialogshell.n.html"> "dialogshell" </A> widget manual entry for details on the above
156 inherited options.
157 <P>
158 <table cellpadding=5>
159 <td valign=top>
160 <B>height</B><br>
161 </td>
162 <td valign=top>
163 <B>master</B><br>
164 </td>
165 <td valign=top>
166 <B>modality</B><br>
167 </td>
168 <td valign=top>
169 <B>width</B><br>
170 </td>
171 </table>
172 <P>
173 See the "shell" widget manual entry for details on the above
174 inherited options.
175 <P>
176 <table cellpadding=5>
177 <td valign=top>
178 <B>title</B><br>
179 </td>
180 <td valign=top>
181 </td>
182 <td valign=top>
183 </td>
184 <td valign=top>
185 </td>
186 </table>
187 <P>
188 See the "Toplevel" widget manual entry for details on the above
189 inherited options.
190 </pre><HR>
191
192 </pre><H2>DESCRIPTION</H2>
193 <P>
194 The <B>fileselectiondialog</B> command creates a file selection dialog
195 similar to the OSF/Motif standard composite widget. The
196 fileselectiondialog is derived from the Dialog class and is composed of
197 a FileSelectionBox with attributes set to manipulate the dialog buttons.
198
199 </pre><H2>METHODS</H2>
200 <P>
201 The <B>fileselectiondialog</B> command creates a new Tcl command whose
202 name is <I>pathName</I>. This
203 command may be used to invoke various
204 operations on the widget. It has the following general form:
205 <pre>
206 <I>pathName option </I>?<I>arg arg ...</I>?
207 </pre>
208 <I>Option</I> and the <I>arg</I>s
209 determine the exact behavior of the command. The following
210 commands are possible for fileselectiondialog widgets:
211 </pre><H2>ASSOCIATED METHODS</H2>
212 <P>
213 <table cellpadding=5>
214 <td valign=top>
215 <B>get</B><br>
216 </td>
217 <td valign=top>
218 <B>childsite</B><br>
219 </td>
220 <td valign=top>
221 <B>filter</B><br>
222 </td>
223 <td valign=top>
224 </td>
225 </table>
226 <P>
227 See the <A HREF="fileselectionbox.n.html"> "fileselectionbox" </A> class manual entry for details on the
228 associated methods.
229 </pre><H2>INHERITED METHODS</H2>
230 <P>
231 <table cellpadding=5>
232 <td valign=top>
233 <B>add</B><br>
234 <B>insert</B><br>
235 </td>
236 <td valign=top>
237 <B>buttonconfigure</B><br>
238 <B>invoke</B><br>
239 </td>
240 <td valign=top>
241 <B>default</B><br>
242 <B>show</B><br>
243 </td>
244 <td valign=top>
245 <B>hide</B><br>
246 </td>
247 </table>
248 <P>
249 See the <A HREF="buttonbox.n.html"> "buttonbox" </A> widget manual entry for details on the above
250 inherited methods.
251 <P>
252 <table cellpadding=5>
253 <td valign=top>
254 <B>activate</B><br>
255 </td>
256 <td valign=top>
257 <B>center</B><br>
258 </td>
259 <td valign=top>
260 <B>deactivate</B><br>
261 </td>
262 <td valign=top>
263 </td>
264 </table>
265 <P>
266 See the "shell" widget manual entry for details on the above
267 inherited methods.
268
269 </pre><H2>WIDGET-SPECIFIC METHODS</H2>
270 <DL>
271 <DT> <I>pathName <B>cget</B> <I>option</I>
272 </I></B>
273 <DD> Returns the current value of the configuration option given
274 by <I>option</I>.
275 <I>Option</I> may have any of the values accepted by
276 the <B>fileselectiondialog</B> command.
277 </DL>
278 <DL>
279 <DT> <I>pathName</I> <B>configure</B> ?<I>option</I>? ?<I>value option value ...</I>?
280 </I></B>
281 <DD> Query or modify the configuration options of the widget.
282 If no <I>option</I> is specified, returns a list describing all of
283 the available options for <I>pathName</I> (see <B>Tk_ConfigureInfo</B> for
284 information on the format of this list). If <I>option</I> is specified
285 with no <I>value</I>, then the command returns a list describing the
286 one named option (this list will be identical to the corresponding
287 sublist of the value returned if no <I>option</I> is specified). If
288 one or more <I>option-value</I> pairs are specified, then the command
289 modifies the given widget option(s) to have the given value(s); in
290 this case the command returns an empty string.
291 <I>Option</I> may have any of the values accepted by
292 the <B>fileselectiondialog</B>
293 command.
294
295 </DL>
296 </pre><H2>COMPONENTS</H2>
297 <P>
298 <pre>
299 Name: <B>fsb</B>
300 Class: <B>Fileselectionbox</B>
301 </pre>
302 <UL>
303 The fsb component is the file selection box for the file selection dialog.
304 See the <A HREF="fileselectionbox.n.html"> "fileselectionbox" </A> widget manual entry for details on the fsb
305 component item.
306 </UL>
307 </table>
308
309 </pre><H2>EXAMPLE</H2>
310 <pre>
311 #
312 # Non-modal example
313 #
314 proc okCallback {} {
315 puts "You selected [.nmfsd get]"
316 .nmfsd deactivate
317 }
318
319 fileselectiondialog .nmfsd -title Non-Modal
320 .nmfsd buttonconfigure OK -command okCallback
321
322 .nmfsd activate
323
324 #
325 # Modal example
326 #
327 fileselectiondialog .mfsd -modality application
328 .mfsd center
329
330 if {[.mfsd activate]} {
331 puts "You selected [.mfsd get]"
332 } else {
333 puts "You cancelled the dialog"
334 }
335 </pre>
336 </pre><H2>AUTHOR</H2>
337 Mark L. Ulferts
338 </pre><H2>KEYWORDS</H2>
339 fileselectiondialog, fileselectionbox, dialog, dialogshell, shell, widget