| 1 |
<TITLE>extfileselectiondialog - Create and manipulate a file selection dialog widget</TITLE> |
| 2 |
<H1>extfileselectiondialog - Create and manipulate a file selection dialog widget</H1> |
| 3 |
|
| 4 |
</pre><H2>SYNOPSIS</H2> |
| 5 |
<B>extfileselectiondialog<I> <I>pathName </I>?<I>options</I>? |
| 6 |
</pre><H2>INHERITANCE</H2> |
| 7 |
itk::Toplevel <- Shell <- Dialogshell <- Dialog <- Extfileselectiondialog |
| 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>popupCursor</B><br> |
| 42 |
</td> |
| 43 |
<td valign=top> |
| 44 |
<B>textBackground</B><br> |
| 45 |
</td> |
| 46 |
<td valign=top> |
| 47 |
<B>textFont</B><br> |
| 48 |
</td> |
| 49 |
<td valign=top> |
| 50 |
</td> |
| 51 |
</table> |
| 52 |
<P> |
| 53 |
See the <A HREF="combobox.n.html"> "combobox" </A> widget manual entry for details on the above |
| 54 |
associated options. |
| 55 |
<P> |
| 56 |
<table cellpadding=5> |
| 57 |
<td valign=top> |
| 58 |
<B>childSitePos</B><br> |
| 59 |
<B>dirsOn</B><br> |
| 60 |
<B>filesOn</B><br> |
| 61 |
<B>invalid</B><br> |
| 62 |
<B>selectionOn</B><br> |
| 63 |
</td> |
| 64 |
<td valign=top> |
| 65 |
<B>directory</B><br> |
| 66 |
<B>filesLabel</B><br> |
| 67 |
<B>fileType</B><br> |
| 68 |
<B>mask</B><br> |
| 69 |
</td> |
| 70 |
<td valign=top> |
| 71 |
<B>dirsLabel</B><br> |
| 72 |
<B>filesLabelOn</B><br> |
| 73 |
<B>filterLabel</B><br> |
| 74 |
<B>noMatchString</B><br> |
| 75 |
</td> |
| 76 |
<td valign=top> |
| 77 |
<B>dirSearchCommand</B><br> |
| 78 |
<B>fileSearchCommand</B><br> |
| 79 |
<B>filterOn</B><br> |
| 80 |
<B>selectionLabel</B><br> |
| 81 |
</td> |
| 82 |
</table> |
| 83 |
<P> |
| 84 |
See the "extfileselectionbox" widget manual entry for details on the above |
| 85 |
associated options. |
| 86 |
<P> |
| 87 |
<table cellpadding=5> |
| 88 |
<td valign=top> |
| 89 |
<B>labelFont</B><br> |
| 90 |
</td> |
| 91 |
<td valign=top> |
| 92 |
</td> |
| 93 |
<td valign=top> |
| 94 |
</td> |
| 95 |
<td valign=top> |
| 96 |
</td> |
| 97 |
</table> |
| 98 |
<P> |
| 99 |
See the <A HREF="labeledwidget.n.html"> "labeledwidget" </A> widget manual entry for details on the above |
| 100 |
associated options. |
| 101 |
<P> |
| 102 |
<table cellpadding=5> |
| 103 |
<td valign=top> |
| 104 |
<B>sashCursor</B><br> |
| 105 |
</td> |
| 106 |
<td valign=top> |
| 107 |
</td> |
| 108 |
<td valign=top> |
| 109 |
</td> |
| 110 |
<td valign=top> |
| 111 |
</td> |
| 112 |
</table> |
| 113 |
<P> |
| 114 |
See the <A HREF="panedwindow.n.html"> "panedwindow" </A> widget manual entry for details on the above |
| 115 |
associated options. |
| 116 |
<P> |
| 117 |
<table cellpadding=5> |
| 118 |
<td valign=top> |
| 119 |
<B>labelFont</B><br> |
| 120 |
</td> |
| 121 |
<td valign=top> |
| 122 |
</td> |
| 123 |
<td valign=top> |
| 124 |
</td> |
| 125 |
<td valign=top> |
| 126 |
</td> |
| 127 |
</table> |
| 128 |
<P> |
| 129 |
See the <A HREF="labeledwidget.n.html"> "labeledwidget" </A> widget manual entry for details on the above |
| 130 |
associated options. |
| 131 |
<P> |
| 132 |
<table cellpadding=5> |
| 133 |
<td valign=top> |
| 134 |
<B>activeRelief</B><br> |
| 135 |
</td> |
| 136 |
<td valign=top> |
| 137 |
<B>elementBorderWidth</B><br> |
| 138 |
</td> |
| 139 |
<td valign=top> |
| 140 |
<B>jump</B><br> |
| 141 |
</td> |
| 142 |
<td valign=top> |
| 143 |
<B>troughColor</B><br> |
| 144 |
</td> |
| 145 |
</table> |
| 146 |
<P> |
| 147 |
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 |
| 148 |
associated options. |
| 149 |
<P> |
| 150 |
<table cellpadding=5> |
| 151 |
<td valign=top> |
| 152 |
<B>textBackground</B><br> |
| 153 |
</td> |
| 154 |
<td valign=top> |
| 155 |
<B>textFont</B><br> |
| 156 |
</td> |
| 157 |
<td valign=top> |
| 158 |
</td> |
| 159 |
<td valign=top> |
| 160 |
</td> |
| 161 |
</table> |
| 162 |
<P> |
| 163 |
See the <A HREF="scrolledlistbox.n.html"> "scrolledlistbox" </A> widget manual entry for details on the above |
| 164 |
associated options. |
| 165 |
|
| 166 |
</pre><H2>INHERITED OPTIONS</H2> |
| 167 |
<P> |
| 168 |
<table cellpadding=5> |
| 169 |
<td valign=top> |
| 170 |
<B>buttonBoxPadX</B><br> |
| 171 |
<B>padY</B><br> |
| 172 |
</td> |
| 173 |
<td valign=top> |
| 174 |
<B>buttonBoxPadY</B><br> |
| 175 |
<B>separator</B><br> |
| 176 |
</td> |
| 177 |
<td valign=top> |
| 178 |
<B>buttonBoxPos</B><br> |
| 179 |
<B>thickness</B><br> |
| 180 |
</td> |
| 181 |
<td valign=top> |
| 182 |
<B>padX</B><br> |
| 183 |
</td> |
| 184 |
</table> |
| 185 |
<P> |
| 186 |
See the <A HREF="dialogshell.n.html"> "dialogshell" </A> widget manual entry for details on the above |
| 187 |
inherited options. |
| 188 |
<P> |
| 189 |
<table cellpadding=5> |
| 190 |
<td valign=top> |
| 191 |
<B>height</B><br> |
| 192 |
</td> |
| 193 |
<td valign=top> |
| 194 |
<B>master</B><br> |
| 195 |
</td> |
| 196 |
<td valign=top> |
| 197 |
<B>modality</B><br> |
| 198 |
</td> |
| 199 |
<td valign=top> |
| 200 |
<B>width</B><br> |
| 201 |
</td> |
| 202 |
</table> |
| 203 |
<P> |
| 204 |
See the "shell" widget manual entry for details on the above |
| 205 |
inherited options. |
| 206 |
<P> |
| 207 |
<table cellpadding=5> |
| 208 |
<td valign=top> |
| 209 |
<B>title</B><br> |
| 210 |
</td> |
| 211 |
<td valign=top> |
| 212 |
</td> |
| 213 |
<td valign=top> |
| 214 |
</td> |
| 215 |
<td valign=top> |
| 216 |
</td> |
| 217 |
</table> |
| 218 |
<P> |
| 219 |
See the "Toplevel" widget manual entry for details on the above |
| 220 |
inherited options. |
| 221 |
</pre><HR> |
| 222 |
|
| 223 |
</pre><H2>DESCRIPTION</H2> |
| 224 |
<P> |
| 225 |
The <B>extfileselectiondialog</B> command creates an extended file |
| 226 |
selection dialog which is slightly different than the |
| 227 |
fileselectiondialog widget. |
| 228 |
The differences are mostly cosmetic in that the listboxes are |
| 229 |
within a panedwindow and the entryfields for the filter and selection |
| 230 |
have been replaced by comboboxes. Other than that the interface is |
| 231 |
practically the same. |
| 232 |
|
| 233 |
</pre><H2>METHODS</H2> |
| 234 |
<P> |
| 235 |
The <B>extfileselectiondialog</B> command creates a new Tcl command whose |
| 236 |
name is <I>pathName</I>. This |
| 237 |
command may be used to invoke various |
| 238 |
operations on the widget. It has the following general form: |
| 239 |
<pre> |
| 240 |
<I>pathName option </I>?<I>arg arg ...</I>? |
| 241 |
</pre> |
| 242 |
<I>Option</I> and the <I>arg</I>s |
| 243 |
determine the exact behavior of the command. The following |
| 244 |
commands are possible for extfileselectiondialog widgets: |
| 245 |
</pre><H2>ASSOCIATED METHODS</H2> |
| 246 |
<P> |
| 247 |
<table cellpadding=5> |
| 248 |
<td valign=top> |
| 249 |
<B>get</B><br> |
| 250 |
</td> |
| 251 |
<td valign=top> |
| 252 |
<B>childsite</B><br> |
| 253 |
</td> |
| 254 |
<td valign=top> |
| 255 |
<B>filter</B><br> |
| 256 |
</td> |
| 257 |
<td valign=top> |
| 258 |
</td> |
| 259 |
</table> |
| 260 |
<P> |
| 261 |
See the <A HREF="fileselectionbox.n.html"> "fileselectionbox" </A> class manual entry for details on the |
| 262 |
associated methods. |
| 263 |
</pre><H2>INHERITED METHODS</H2> |
| 264 |
<P> |
| 265 |
<table cellpadding=5> |
| 266 |
<td valign=top> |
| 267 |
<B>add</B><br> |
| 268 |
<B>insert</B><br> |
| 269 |
</td> |
| 270 |
<td valign=top> |
| 271 |
<B>buttonconfigure</B><br> |
| 272 |
<B>invoke</B><br> |
| 273 |
</td> |
| 274 |
<td valign=top> |
| 275 |
<B>default</B><br> |
| 276 |
<B>show</B><br> |
| 277 |
</td> |
| 278 |
<td valign=top> |
| 279 |
<B>hide</B><br> |
| 280 |
</td> |
| 281 |
</table> |
| 282 |
<P> |
| 283 |
See the <A HREF="buttonbox.n.html"> "buttonbox" </A> widget manual entry for details on the above |
| 284 |
inherited methods. |
| 285 |
<P> |
| 286 |
<table cellpadding=5> |
| 287 |
<td valign=top> |
| 288 |
<B>activate</B><br> |
| 289 |
</td> |
| 290 |
<td valign=top> |
| 291 |
<B>center</B><br> |
| 292 |
</td> |
| 293 |
<td valign=top> |
| 294 |
<B>deactivate</B><br> |
| 295 |
</td> |
| 296 |
<td valign=top> |
| 297 |
</td> |
| 298 |
</table> |
| 299 |
<P> |
| 300 |
See the "shell" widget manual entry for details on the above |
| 301 |
inherited methods. |
| 302 |
|
| 303 |
</pre><H2>WIDGET-SPECIFIC METHODS</H2> |
| 304 |
<DL> |
| 305 |
<DT> <I>pathName <B>cget</B> <I>option</I> |
| 306 |
</I></B> |
| 307 |
<DD> Returns the current value of the configuration option given |
| 308 |
by <I>option</I>. |
| 309 |
<I>Option</I> may have any of the values accepted by |
| 310 |
the <B>extfileselectiondialog</B> command. |
| 311 |
</DL> |
| 312 |
<DL> |
| 313 |
<DT> <I>pathName</I> <B>configure</B> ?<I>option</I>? ?<I>value option value ...</I>? |
| 314 |
</I></B> |
| 315 |
<DD> Query or modify the configuration options of the widget. |
| 316 |
If no <I>option</I> is specified, returns a list describing all of |
| 317 |
the available options for <I>pathName</I> (see <B>Tk_ConfigureInfo</B> for |
| 318 |
information on the format of this list). If <I>option</I> is specified |
| 319 |
with no <I>value</I>, then the command returns a list describing the |
| 320 |
one named option (this list will be identical to the corresponding |
| 321 |
sublist of the value returned if no <I>option</I> is specified). If |
| 322 |
one or more <I>option-value</I> pairs are specified, then the command |
| 323 |
modifies the given widget option(s) to have the given value(s); in |
| 324 |
this case the command returns an empty string. |
| 325 |
<I>Option</I> may have any of the values accepted by |
| 326 |
the <B>extfileselectiondialog</B> |
| 327 |
command. |
| 328 |
|
| 329 |
</DL> |
| 330 |
</pre><H2>COMPONENTS</H2> |
| 331 |
<P> |
| 332 |
<pre> |
| 333 |
Name: <B>fsb</B> |
| 334 |
Class: <B>Fileselectionbox</B> |
| 335 |
</pre> |
| 336 |
<UL> |
| 337 |
The fsb component is the extfileselectionbox for the extfileselectiondialog. |
| 338 |
See the "extfileselectionbox" widget manual entry for details on the fsb |
| 339 |
component item. |
| 340 |
</UL> |
| 341 |
</table> |
| 342 |
|
| 343 |
</pre><H2>EXAMPLE</H2> |
| 344 |
<pre> |
| 345 |
# |
| 346 |
# Non-modal example |
| 347 |
# |
| 348 |
proc okCallback {} { |
| 349 |
puts "You selected [.nmfsd get]" |
| 350 |
.nmfsd deactivate |
| 351 |
} |
| 352 |
|
| 353 |
extfileselectiondialog .nmfsd -title Non-Modal |
| 354 |
.nmfsd buttonconfigure OK -command okCallback |
| 355 |
|
| 356 |
.nmfsd activate |
| 357 |
|
| 358 |
# |
| 359 |
# Modal example |
| 360 |
# |
| 361 |
extfileselectiondialog .mfsd -modality application |
| 362 |
.mfsd center |
| 363 |
|
| 364 |
if {[.mfsd activate]} { |
| 365 |
puts "You selected [.mfsd get]" |
| 366 |
} else { |
| 367 |
puts "You cancelled the dialog" |
| 368 |
} |
| 369 |
</pre> |
| 370 |
</pre><H2>AUTHORS</H2> |
| 371 |
Mark L. Ulferts |
| 372 |
<P> |
| 373 |
Anthony L. Parent |
| 374 |
</pre><H2>KEYWORDS</H2> |
| 375 |
extfileselectiondialog, extfileselectionbox, dialog, dialogshell, shell, widget |