home *** CD-ROM | disk | FTP | other *** search
-
- June 8, 1987
-
- ********************************************************************
- * *
- * Gonedu's all purpose File Requester by AmiLink Development Team. *
- * *
- * // // *
- * \\ // (c) AmiLink 1987 by Gonzalez Eduardo \\ // *
- * \// \// *
- * *
- * Freely Distributed by IMPULSE, INC. Minneapolis, MN. 55430 *
- * by permission of, and in cooperation with: *
- * *
- * AMI-LINK, Geneva, Switzerland *
- * *
- * If your Software Development Company is interested in using *
- * this files requester in commercial applications, please *
- * contact: "Stan Kalisher" at Impulse inc: 612-566-0221. *
- * *
- ********************************************************************
-
- Advantages of Gonedu's FileRequester:
-
- -It's the first completely mouse driven Requester. Even the disk choice can
- be done with the mouse although I haven't forgotten the keyboard lovers...
-
- -It's a "No Wait State" directory Requester, which can be interrupted at any
- time by the user. All gadgets can be selected even during the directory
- loading.
-
- -The Requester Remembers the directory files, so repeated use becomes
- really a pleasure.
-
- -It's a movable Requester, you can drag it like a window by clicking on the
- two first lines at the top. The secret... there is a real window hidden
- behind the Requester.
-
- -A Disk and a Parent gadget are included.
-
- -At the beginning the "Filename" string gadget is automatically selected and
- the inputs can be controled to be sure that the chosen file is really
- in the directory list of files. The Undo (right Amiga-Q) very handy
- feature of Intuition is present.
-
- -The file names are sorted (Up/Low treated) and the directory names are
- shadowed.
-
- -The arrows scroll one file, the container of the pot scrolls one page and
- with the pot you can move freely and look at the files at the same time.
-
- -The alerts (like Wrong disk ?) appear always with a small requester to warn
- the user.
-
- -At the internal level: every memory allocation is tested, so if a MEMORY FULL
- event occurs, the program won't crash and the memory already allocated
- will be automatically freed (no more disgusting gurus).
-
- -And so on...
-
-
- Disvantages of Gonedu's FileRequester:
-
- -I think the main disvantage is that Req.o is a quite important file
- (about 12 Kbytes) so perhaps some of you won't use it for small programs.
- But let me tell you that this size is partly a consequence of the
- custom images used in the gadgetry and, of course, but it is also a
- consequence of the completeness of this piece of software.
- ------------------------------------------------------------------------------
-
- RUNNING THE DEMO
-
- The demo File Requester MUST be invoked from CLI. For a default run, type
- "run FILEREQ". The requester will appear in the upper left hand corner of
- your current screen. To use parameters, type in "FILEREQ". In response to
- "Gimme a title" Type in anything you would like as a title for the drag
- bar of the requester.
-
- In response to "Gimme a path", type in a drive number you want the
- requester to access. (i.e DF0:, DH0:, DF1: etc).
-
- In repsonse to "Left and Top edges of Requester's top left corner, type in
- "20 20". (This will position the requester so you can grab it and move
- it around.)
-
- In response to "Do you want test inputs?" just hit <RETURN>.
-
-
- This demo is fully functional. I won't tell you how it works. "Click" on
- all the Gadgets and Icons. This demo was compiled under Manx 3.4a, in June
- of 1987.
-
- Legitimate Software development firms, who would like to use this file
- requester in their applications, should contact us at Impulse, Inc. in
- Minneapolis, 612-566-0221, and we will forward your requests to the
- authors.
-
- Stan Kalisher
-
-
- ==============================================================================
- NAME
- FileRequest -- Presents a movable file name requester in your screen.
-
- SYNOPSIS
- BOOL FileRequest(Title, FullPath, Screen,
- LeftEdge, TopEdge, InputTest, UserTAttr, FilesKey);
-
- char *Title, *FullPath;
- struct Screen *Screen;
- SHORT LeftEdge, TopEdge;
- BOOL InputTest;
- struct TextAttr *UserTAttr;
- struct Remember **FilesKey;
-
- FUNCTION
- This routine performs exactly what it's name lets you expect from it.
- It lists the directory specified by FullPath, displays up to 8 files
- or directory names (shadowed), allows scrolling up and down the list
- using arrows or a pot gadget.
- It permits DISK, directory and file name selection using the mouse or
- the keyboard.
-
- INPUTS
- Title = Pointer to a string that is the title of the requester.
- It is better to place a space at the beginnig and the end just
- for aesthetical sake. Max. size of this string is 36 chars +
- one NULL char.
- FullPath = Pointer to a string containing the full path of the direc-
- tory to be listed when requester is displayed.
- If NULL then the current directory will be listed.
- There must be room for at least 110 chars + NULL char.
- Example: char FullPath[111];
- Screen = A pointer to a custom Screen or a NULL if you are using the
- normal WBENCHSCREEN.
- LeftEdge = The initial x-position, which represents the offset from
- the first pixel on the line, pixel 0.
- TopEdge = The initial y-position, which represents how many lines down
- from the top (line 0) you want the window to begin.
- InputTest = If you want the keyboard input to be tested, which is very
- handy and useful for file loading because it assures you that
- the file chosen in any case really exists (so use TRUE) but it
- is quite annoying when used for file saving because the file
- chosen doesn't have to exist and can be created (so ...suspens
- ... use FALSE).
- UserTAttr = Lets you specify your own TextAttr structure and use your
- own special fonts. If NULL, no special TextAttr used.
- FilesKey = The address of an Intuition Remember Key used for the list
- of files in the directory. The Key must be NULL at the first
- call and before any call with effective directory reading.
-
- RESULT
- If the CANCEL button is selected, then FALSE is returned and FullPath
- won't be complete but if a file is chosen and the OK button selected,
- then TRUE is returned and FullPath will be modified according to your
- path and file choice.
-
- BUGS
- It's up to you to find them (?) and then, please, let me hear about
- them (sniff...).
-
-