home *** CD-ROM | disk | FTP | other *** search
- NAME
- FileRequest -- Presents a file name requester in your window.
-
- SYNOPSIS
- BOOL FileRequest(Title, LeftButtonText, FullPath, Window);
-
- UBYTE *Title, *LeftButtonText, *FullPath;
- struct Window *Window;
-
- FUNCTION
- This routine performs the functions of a file name requester: it lists
- the directory specified by FullPath; it displays up to 8 file or
- directory names; it allows scrolling up and down the list using boolean
- or potentiometer gadgets; and it permits directory and file name
- selection using the mouse or the keyboard.
-
- NOTE: The "GADGETDOWN, GADGETUP and REQCLEAR" IDCMP flags must be set in
- your Window structure for this requester to operate properly.
-
- INPUTS
- Title = pointer to a string that is the title of the requester.
- LeftButtonText = pointer to a string that indicates the function
- associated with the left boolean gadget (e.g. Load or Save).
- (The right mouse button is always associated with the Cancel
- function.)
- FullPath = pointer to a string containing the full path of the directory
- to be listed when requester is displayed. (There must be room in the
- string for at least 80 bytes - 79 + NULL termination.)
- Example: UBYTE MyFile[80] = "df0:dir1/dir2/file"
- Window = pointer to the window in which the requester is to be rendered.
-
- RESULT
- If the right requester (Cancel) button is selected, FALSE is returned.
- If the left requester button (defined by you) is selected, TRUE is
- returned.
-
- The variable "FullPath" is modified by the user's actions, regardless of
- which button is selected.
-
- BUGS
-
- SEE ALSO
- AutoRequest(), Request().
-