Name |
is a byte array into which FileName will deposit the file name the
user selects. If no file is selected, the first byte will be
cleared. This array should be at least 100 bytes long. |
Prompt |
is a null terminated string that is diplayed in the file requester
window's title bar. |
Template |
is a null terminated string that indicates what type of file to
search for and display. For example, if Template were "c", all
files that end with ".c" would be displayed. If you'd rather
display all files, set the template to NULL. |
Screen |
is the screen you'd like the file requester to appear in. If you'd
like it in Workbench, set Screen to NULL. For Bars&Pipes :
functions->screen. |
Flags |
There are several bits you can set to alter the requester's
behavior.
FILES_DELETE |
a delete icon will appear, and the user
will be able to delete files, along with selecting
the one to load or save. |
FILE_OPEN |
an icon that say's 'Open' will replace the
'Okay' icon. |
FILES_SAVE |
this icon will say 'Save' |
FILES_TEST |
the requester will make sure the file can
be opened as required before returning. |
So, if FILES_SAVE and FILES_TEST are set, it will try to open the
file for writing before returning. This means, by the way, that the
file will be erased if it can be opened.
If FILES_OPEN and FILES_TEST are set, it will check that the file
can be opened for reading before returning. If the file test fails,
the screen flashes red an the user must make another selection.
|
X, Y |
These two numbers indicates the LeftEdge and TopEdge positions for
the file requester. The requester is pretty big (284 x 62), so make
sure it doesn't go off the screen. |