home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / apple2 / 17732 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.8 KB  |  47 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: Re: need help with SFGetFile
  5. Message-ID: <1992Jul22.134515.12833@oakhill.sps.mot.com>
  6. Keywords: SFGetFile 
  7. Reply-To: jasonp@fantasia.UUCP (Jason Perez)
  8. Organization: Motorola Inc., Austin, Texas
  9. References: <1992Jul21.221425.12406@oakhill.sps.mot.com>
  10. Date: Wed, 22 Jul 1992 13:45:15 GMT
  11. Lines: 34
  12.  
  13. In article <1992Jul21.221425.12406@oakhill.sps.mot.com> jasonp@fantasia.UUCP (Jason Perez) writes:
  14. >  i've just started toolbox programming and i need help with SFGetFile.
  15. >i'm using orca/c v1.3, gno 1.0, gs/os 6.0.  i have all three toolbox
  16. >manuals, but vol.3 is at unfortunately at another location.
  17. >  anyway, the problem i'm having is getting the filter procedure to
  18. >filter out all files that aren't $C1 (SHR pics).  i do the following
  19. >to call SFGetFile:
  20. >     SFGetFile(30,30,OpenFilter,NULL,LoadReply);  <i think that's it>  
  21.  
  22. actually, after looking at my program, it's:
  23.  
  24.       SFGetFile(50,40,"\pLoad which pic:",OpenFilter,NULL,&LoadReply);   
  25.  
  26.  
  27. >and :       
  28. >     pascal int OpenFilter(ptr);  <function prototype at top of program>
  29. >
  30. >     pascal int OpenFilter(ptr DirEntry)
  31. >      {
  32. >        return noSelect;   <this should simple not let me select ANY file>
  33. >      }
  34. >
  35. >  what happens is that SFGetFile is called, the open file dialog box comes up,
  36. >  and ALL files are displayed and selectable.  i can accept a file and the dialog
  37. >  box goes away.  so it looks like the filter function is NOT being called.  
  38. >     
  39.  
  40.  
  41. -- 
  42. Jason Perez                             | 
  43. jasonp@fantasia.sps.mot.com             | "Gig 'em!"     "Frodo lives!"
  44. j0p7771@sigma.tamu.edu                  | "Don't have a cow man!"
  45. ________________________________________|______________________________________
  46.