I found the following in ImageCompression.h:
pascal void SFPGetFilePreview(Point where,
ConstStr255Param prompt,
FileFilterProcPtr fileFilter,
short numTypes,
SFTypeList typeList,
DlgHookProcPtr dlgHook,
SFReply *reply,
short dlgID,
ModalFilterProcPtr filterProc)
= {0x303C,0x42,0xAAA3};
which could be defined as:
'============================================================
CLEAR LOCAL MODE
'pascal void SFPGetFilePreview(Point where,
' ConstStr255Param prompt,
' FileFilterProcPtr fileFilter,
' short numTypes,
' SFTypeList typeList,
' DlgHookProcPtr dlgHook,
' SFReply *reply,
' short dlgID,
' ModalFilterProcPtr filterProc)
' = {0x303C,0x42,0xAAA3};
LOCAL FN SFPGetFilePreview(where&,@prompt&, fileFilter&, numTypes%, typeList&,
dlgHook&, sfReply&, dlgID%, filterProc&)
'--------------------------------------------------------
`
` MOVE.L ^where&, -(sp) ;point
` MOVE.L ^prompt&, -(sp) ;prompt string address
` MOVE.L ^fileFilter&,-(sp) ;fileFilter procPtr
` MOVE.W ^numTypes%, -(sp) ;number of file types
` MOVE.L ^typeList&,-(sp) ;array address of 4 longs (DIM myTypes&(3),
pass as @myTypes&(0))
` MOVE.L ^dlgHook&, -(sp) ;dialog hook routine ptr
` MOVE.L ^sfReply&, -(sp) ;address of 88 byte StandardFileReply
record
` MOVE.W ^dlgID, -(sp) ;dialog ID
` MOVE.L ^filterProc&, -(sp) ;dialog filterproc
` DC.W $303C,$0042,$AAA3 ;trap number
`
END FN
untested, and I don't have an example or any documentation on usage.
hth
Chris
______________________________ Reply Separator _________________________________
Subject: Re: [FB] QuickTime Get Files dialog...
Author: jsmorr@...
Date: 11/18/97 10:26 AM
I recently read a section of a book about using the SFPGetFile (using
CodeWarrior) and another toolbox call similarly named (SFPGetFilePreview?).
I don't think it was a QT related call as much as it was just a ROM call that
loaded a PICT resource if it exists in the selected file for a preview.
I guess this doesn't help much, but there it is.
John M.
--
To unsubscribe, send ANY message to <futurebasic-unsubscribe@...>