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