home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / apple2 / 17705 < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.5 KB  |  38 lines

  1. Newsgroups: comp.sys.apple2
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!oakhill!jasonp
  3. From: jasonp@oakhill.sps.mot.com (Jason Perez)
  4. Subject: need help with SFGetFile
  5. Message-ID: <1992Jul21.221425.12406@oakhill.sps.mot.com>
  6. Reply-To: jasonp@fantasia.UUCP (Jason Perez)
  7. Organization: Motorola Inc., Austin, Texas
  8. Date: Tue, 21 Jul 1992 22:14:25 GMT
  9. Lines: 27
  10.  
  11.   i've just started toolbox programming and i need help with SFGetFile.
  12. i'm using orca/c v1.3, gno 1.0, gs/os 6.0.  i have all three toolbox
  13. manuals, but vol.3 is at unfortunately at another location.
  14.   anyway, the problem i'm having is getting the filter procedure to
  15. filter out all files that aren't $C1 (SHR pics).  i do the following
  16. to call SFGetFile:
  17.  
  18.      SFGetFile(30,30,OpenFilter,NULL,LoadReply);  <i think that's it>  
  19.  
  20. and :       
  21.      pascal int OpenFilter(ptr);  <function prototype>
  22.  
  23.      pascal int OpenFilter(ptr DirEntry)
  24.       {
  25.         return noSelect;   <this should simple not let me select ANY file>
  26.       }
  27.  
  28.   what happens is that SFGetFile is called, the open file dialog box comes up,
  29.   and ALL files are displayed and selectable.  i can accept a file and the dialog
  30.   box goes away.  so it looks like the filter function is NOT being called.  
  31.      
  32.  
  33. -- 
  34. Jason Perez                             | 
  35. jasonp@fantasia.sps.mot.com             | "Gig 'em!"     "Frodo lives!"
  36. j0p7771@sigma.tamu.edu                  | "Don't have a cow man!"
  37. ________________________________________|______________________________________
  38.