Important: The information in this document is obsolete and should not be used for new development.
StandardPutFile
You can use theStandardPutFile
procedure to display the default Save dialog box when the user is saving a file.
PROCEDURE StandardPutFile (prompt: Str255; defaultName: Str255; VAR reply: StandardFileReply);
prompt
- The prompt message to be displayed over the text field.
defaultName
The initial name of the file.reply
- The reply record, which
StandardPutFile
fills in before returning.DESCRIPTION
TheStandardPutFile
procedure presents a dialog box through which the user specifies the name and location of a file to be written to. The dialog box is centered on the screen. While the dialog box is active,StandardPutFile
gets and handles events until the user completes the interaction, either by selecting a name and authorizing the save or by canceling the save. TheStandardPutFile
procedure returns the user's input in a record of typeStandardFileReply
.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forStandardPutFile
are
Trap macro Selector _Pack3 $0005 SPECIAL CONSIDERATIONS
TheStandardPutFile
procedure is not available in all versions of system software. Use theGestalt
function to determine whetherStandardPutFile
is available before calling it.Because
StandardPutFile
may move memory, you should not call it at interrupt time.