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: Re: need help with SFGetFile
- Message-ID: <1992Jul22.134515.12833@oakhill.sps.mot.com>
- Keywords: SFGetFile
- Reply-To: jasonp@fantasia.UUCP (Jason Perez)
- Organization: Motorola Inc., Austin, Texas
- References: <1992Jul21.221425.12406@oakhill.sps.mot.com>
- Date: Wed, 22 Jul 1992 13:45:15 GMT
- Lines: 34
-
- In article <1992Jul21.221425.12406@oakhill.sps.mot.com> jasonp@fantasia.UUCP (Jason Perez) writes:
- > 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>
-
- actually, after looking at my program, it's:
-
- SFGetFile(50,40,"\pLoad which pic:",OpenFilter,NULL,&LoadReply);
-
-
- >and :
- > pascal int OpenFilter(ptr); <function prototype at top of program>
- >
- > 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!"
- ________________________________________|______________________________________
-