home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 2
/
fishmore-publicdomainlibraryvol.ii1991xetec.iso
/
fish
/
libraries
/
fileio_463
/
bugfixes
< prev
next >
Wrap
Text File
|
1991-03-09
|
5KB
|
116 lines
The latest version of the dissidents FileIO requester.library is 1.C
BUG FIXES in 1.6
------------------
A rather obscure bug was found and corrected. This bug would cause the
requester to crash when the user entered a drawer on a disk, and then
immediately went to another disk with a file in the root level with the same
name as that previous directory. If this sounds weird, it is, but now you no
longer have to worry about this unusual set of circumstances occurring.
The C Include file, FileIO.h, was missing a definition of one of the
library's functions, GetFullPathname().
BUG FIXES in 1.9
------------------
If an extention is specified (and EXTENSION_MATCH enabled), the extension
is ALWAYS added to the returned path buffer as well as the FileIO's Filename
buffer, unless the extension is already on the selection. EXTENSION_MATCH does
not apply to SPECIAL_REQ.
ClearEntries() in the C glue FileInterface.asm was broken. It is fixed.
DoFileIOWindow() may have caused re-entrant problems before. Fixed
The FREEBYTES field wasn't set for the chosen disk if the user typed in
the Diskname without hitting return and selected OK. Fixed
There is a new requester.bmap file. The functions BW_Restore and Window_BW
are called BW.Restore and Window.BW for Basic programs. (AmigaBasic chokes on
imbedded underscores in function names).
The AmigaBasic example had an error in the code to enable extension match.
The code should have referenced ExtPtr, not BufferPtr as so
POKE (ExtPtr+i-1),value
POKE (ExtPtr+extsize),0
Also, remove the UCASE$ statement since the extension should be in lower,
not upper case.
NEW FEATURES in 1.9
--------------------
Upon return from AddFileGadgs() or your custom "NextDisk" gadget, the
requester is refreshed so that any changes to the FileIO's gadget list,
NextDisk Text, or NextDisk Handler, now take effect.
A new function, PutProjIcon(), has been added so that programs that do
nothing more with icons than save a PROJECT icon (for a data file perhaps)
need not open the icon library. (That's 6K of C code. BLEECH!)
New functions Window_BW and BW_Restore are added. See doc.
New function AddFileGadgs to add your gadgets to the file requester.
New functions to delete entries from a custom list of strings. See doc.
There are new files FileIO.i, FileIO.h, and FileInterface.asm, and
requester_lib.fd as a result of these new functions.
BUG FIXES in 1.C
------------------
The AddFileGadgs() had a bug which caused the requester to crash upon the
second time that a program (which used AddFileGadgs) was run. Fixed.
Some bugs in the C example were corrected, as well as new comments added
to provide additional info that wasn't discussed in the original doc.
NEW FEATURES in 1.C
--------------------
The length of custom strings in SPECIAL_REQ mode was limited to 29 chars.
This is now changed to 191 chars (plus 1 for the final null). The file reques-
ter only displays the first 29. See the notes in the doc about SPECIAL_REQ.
The requester now displays all logical assigns (ie C:, LIBS:, etc) when the
file requester is displayed. Logical assignments can be filtered out by toggling
the F5 key when the requester is open. (This replaces the ability to toggle
DOUBLE CLICK OFF by the user, though this flag is still available to programs.)
The NAME, DISK, DRAWER, and OK, CANCEL, and NEXTDISK gadgets have been moved
down to make room for adding gadgets below the filename list.
The DISK_HAS_CHANGED flag has been replaced with the new EXCLUDE_ASSIGNS
flag. It's probably best to leave the toggling of NO_CARE_REDRAW up to the
user since doing so from within a program can cause the user to be confused
if he saves a data file from another program that doesn't use the requester
library. If you need to use NO_CARE_REDRAW, consult the new doc about how to
hear DISKINSERTED events from the requester.
For DoFileIO(), if the FILEIO_TITLE field is not null, then this string is
printed out above the list of filenames. (Note that the SetTitle and Clear-
Title functions also use the FILEIO_TITLE field, so use the functions accord-
ingly. i.e. If you use SetTitle, then always ClearTitle before calling
DoFileIO. Otherwise, simply initialize the FILEIO_TITLE to null or some
string before calling DoFileIO.)
Two new functions, ParentPath() and ParentLock() are added to make it easy
to get a complete pathname based upon a filename or a lock.
Two new AmigaBASIC examples show how to use multiple selections with both
filenames and custom lists.
I was going to make some new examples to demo deleting items from a custom
list of strings, but I've gotten rather busy lately. Given that the feedback
that I've received about this library is minimal, I'm assuming that most people
have figured out what they need to do with it, or aren't interested in it. If
you have some trouble, contact me, and I'll try to answer any questions.
Jeff Glatt
6 Sycamore Drive East
New Hartford, NY 13413
(315) 735-5350