[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

964.0. "FileSelection search" by BUFFER::RITTO () Fri Jun 16 1989 13:49

How can I get the FileSelection widget to search down
directory structure (i.e., when user clicks on a directory,
the files in that directory are displayed for selection)?

Presently, my FileSelection widget just returns the 
directory name when its clicked on.  Do I have to
write my own search procedure, or is there an attribute
I can set to do this?

Thanks in advance for any info,
Pat Ritto

T.RTitleUserPersonal
Name
DateLines
964.1sorry...CB750C::BOLGATZFri Jun 16 1989 18:428
    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.2easy, or hard?BUFFER::RITTOMon Jun 19 1989 12:3710
   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.3CB750C::BOLGATZMon Jun 19 1989 12:5911
    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.4a clarificationBUFFER::RITTOMon Jun 19 1989 15:1414
   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.5RTL::BOLGATZMon Jun 19 1989 17:1419
    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.6thanksBUFFER::RITTOMon Jun 19 1989 18:484
    Thanks.  Sorry for the confusion ... it's been a long day.

    Pat