[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

2914.0. "DwtFileSelectionDoSearch problem" by CADSE::NORMAN () Mon Jun 11 1990 16:25

I am using a file selection widget and I would like to update the
file list while it is still mapped. The application deletes a file
and I want the file selection widget to automatically reflect this
change. I have tried using DwtFileSelectionDoSearch. No luck.
It neither returns an error or does anything at all.

I am passing it the file selection widget ID and the dir mask. The
dir mask is grabbed directly from the dir mask in the widget and
looks OK when examined in the debugger (a compound string that
contains the mask string as it appears in the file selection widget).

Does anyone know if this routine actually works? Am I doing something
wrong (could be)?

				Paul Norman
T.RTitleUserPersonal
Name
DateLines
2914.1small test program or code fragment?RTL::VANGILDERJim V., DECwindows ToolkitsFri Jun 15 1990 09:314
Hard to tell from your description what the problem is.  How about
posting the relevant part of the code or a SMALL test program?

2914.2DwtFileSelectionDoSearchSMURF::JJGJeff GlassThu Jun 21 1990 12:5213
I have used DwtFileSelectionDoSearch and can vouch for it working.  I call it
with a dirmask of "(DwtCompString)0", though, which seems to have the effect
of not changing the dirmask.

I have also implemented my own search proc, which I believe is a tremendous
improvement over the default for ULTRIX.  It allows you to traverse the
directory tree easily--just click on a directory name.  The accept callback
then sets dirSpec to that directory and calls DwtFileSelectionDoSearch, and
the search proc then displays the files and directories in the new directory.
It has short cuts to take you to your home directory and the root directory.
I'd be glad to mail or post this if there's any interest.

/jeff