T.R | Title | User | Personal Name | Date | Lines |
---|
964.1 | sorry... | CB750C::BOLGATZ | | Fri Jun 16 1989 15:42 | 8 |
| sorry - not supported... would have been too much of a headache for
multi-OS support. Will just parse the specific directory mask.
(of course, you can specify directories other than the default
in the mask...)
Jay
|
964.2 | easy, or hard? | BUFFER::RITTO | | Mon Jun 19 1989 09:37 | 10 |
| Thanks for the info.
Can I just set the FileSelection widget's dirmask to the returned
directory name, or do I have to create a new FileSelection widget?
In other words, will the widget change the file list dynamically
when I change the dirmask?
Thanks,
Pat
|
964.3 | | CB750C::BOLGATZ | | Mon Jun 19 1989 09:59 | 11 |
| The search list is updated by the fileselection widget when:
(1) the widget becomes visible
(2) the user activates the 'filter' pushbutton
(3) the application changes the dirmask via SetValues
(4) the application calls DwtFileSelectionDoSearch
this is all documented in the Toolkit Ref Manual... :-)
Jay
|
964.4 | a clarification | BUFFER::RITTO | | Mon Jun 19 1989 12:14 | 14 |
| Ah, I just realized what the problem is. The "dirmask"
attribute is a filter for the files displayed in the
list box, not the name of the directory being searched.
I need to be able to change the directory whose contents
are being displayed, but the argument DwtNdirSpec (which
I presume describes that directory) cannot be modified using
SET VALUES according to the docs. Does this mean I have
to create a whole new widget to display a different
directory's contents? (sure to be terribly slow ...)
Thankful for the help,
Pat
|
964.5 | | RTL::BOLGATZ | | Mon Jun 19 1989 14:14 | 19 |
| You're confusing DwtNdirMask with DwtNdirSpec -- dirSpec is the
current default directory extracted from the dirMask. It is
read only and does not effect the search list in any way.
DwtNdirMask is the DCL-like mask that is used to generate the
file list.
For example, if my default directory is disk$:[bolgatz] and my dirMask was
"*.c", then the dirSpec would be "disk$:[bolgatz]". Note that the dirMask
- "*.c" - is what generates the files... However, I can set the search
directory by incorporating it into the dirMask (just as in DCL). Therefore,
dirMask could be "disk$:[bolgatz.work]*.c", and dirSpec would then be
"disk$:[bolgatz.work]" (even though the application is still running in
disk$:[bolgatz]).
I will send a note to our writer to make this a little clearer in the
documentation...
Jay
|
964.6 | thanks | BUFFER::RITTO | | Mon Jun 19 1989 15:48 | 4 |
| Thanks. Sorry for the confusion ... it's been a long day.
Pat
|