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 |
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.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
2914.1 | small test program or code fragment? | RTL::VANGILDER | Jim V., DECwindows Toolkits | Fri Jun 15 1990 09:31 | 4 |
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.2 | DwtFileSelectionDoSearch | SMURF::JJG | Jeff Glass | Thu Jun 21 1990 12:52 | 13 |
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 |