home *** CD-ROM | disk | FTP | other *** search
- Well, dudes, here are some improved libs and some own crap...
- Have a look, hope there is somthing usefull...
-
- Improved ones(Basic/):
-
- - asllib:
- - Pattern and title bug fixed
- - PathRequest added, syntax:
- ASLPathRequest$ Title$,Pathname$ [,x,y,w,h]
-
- - fileiolib(changed by Zippo):
- - No more write to an ReadFile
- - Exists now recognize directories
-
- - gtlib:
- - A fistful bugs fixed, enforcer-hits removed
- - SetAttrs added(OS 3.0) ; your routine, a little improved..., syntax:
- GTGetAttrs (GTList#,id,Tag)
- - Toggle flag for button-gadgets = $2000
- - GTShape added, hope it works..., syntax:
- GTShape GTList#,id,x,y,flags,Shape#[,Shape#]
- - GTEnable added, need a redraw it windoe is active, syntax:
- GTEnable GTList#,Id
- - GTDisable added, need a redraw it windoe is active, syntax:
- GTDisable GTList#,Id
- - GTToggle added(for button-gadgets only), added, need a redraw it windoe is active, syntax:
- GTToggle GTList#,Id [,On|Off]
-
- - ilbmifflib:
- - ILBMInfo returns now a value(True or False), no need for debuger, let the
- user check it out...
-
- - windowslib:
- - WindowTags added, works like ScreenTags, syntax:
- WindowTags Window#,Flags,Title$ [,&TagList] or [[,Tag,Data]...]
-
-
-
- Own ones(UserLibs/):
-
- - ConsoleLib(a little buggy yet):
- - OpenConsole Window#,Console#
- Open a CON: Port for the window, so ANSI output is possible.
-
- - PrintCon Console#,Expression
- Write text to window-console.
-
- - NPrintCon Console#,Expression
- Write text to window-console, and add a Linefeed.
-
- - CloseConsole Console#
- Close the CON: Port, but NOT the window itself!
-
- Note:
- These command work if you use them only for ONE window...
- If you wanna use the CON's for more windows, so that object
- are use it doesn' t work anymore...
- Ya see, I need ya help, please...
-
- - CrunchLib:
- - Implode Error/CrunchedLen=Bufferadr,DataLen,?Callback
- Crunch a buffer using the Imploder algorythm.
- The ?Callback could be a 0 for no own routine or a pointer
- to an own routine for display or abort checking.
- If the Imploder command jump to the callback in register d0
- the current crunch position is presend.
- The callback itself have to return True for cont crunching
- or False for a break!
- The command return the crunched buffer len or of course a break
- or an error.
- If a <0 is returned the callback returned a userbreak,
- a return of 0 means an error happens.
- Else the new buffer len is returned.
-
- - Deplode Success=Startadr
- Decrunch a Imploder-Crunched buffer.
- There is no need to give the crunched buffer len to the command,
- imploder handle this by itself.
- But be careful, if the alloceted buffer hasn' t enought space
- the program crash.
-
- The buffer has to have a header like this:
-
- Type Offset Contents Function
- LONG 0 "IMP!" To recongnize crunched files
- LONG 4 Original Len Datalen before packing
- LONG 8 Crunched Len-$32 Datalen after packing
-
- So $a is the start of the datas...
-
- The decrunch routine NEED this header to decrunch!!!
- Do memoryallocation for the buffer using a allocate for the Startadr+$4
- size.
-
- - CrMDecrunch Bufferadr [,Destinationadr]
- If the only parameter is the Bufferadr this routine works like the Deplode
- command, but decrunch a CrunchMania crunched file.
- If you use it with to parameters the decrunch will be done from
- Bufferadr to Destinationadr, so 2 buffers have to been allocated.
- The header for CrunchMania files have to look like this:
-
- Type Offset Contents Function
- LONG 0 "CrM!"/"CrM2" To recongnize crunched files
- WORD 4 Minimum Security Distance To savely decrunch Data when
- Source AND Dest is in the same Memoryblock
- LONG 6 Original Len Datalen before packing
- LONG 10 ($a) Crunched Len Datalen after packing without header
-
- So at $d is the data startadress.
-
- This header is NEEDED for decrunching!
-
- - PPDecrunch Bufferadr,Bufferend,Destinationadr
- This command decrunch a PowerPacker crunched file.
- PowerPacker need two buffers for decrunching.
- Also the lenght of the buffer must be given!
- Sorry, I can' t find my PowerPacker archive where the header is
- descripted...
- Like Imploder and CrunchMania PowerPacker also support his own
- file header.
- Please have a look at the PowerPacker(.library) documentation!
-
- - LocaleLib:
- - IsLocale
- There is now way to check the ROM-Version of the Kickstart
- for locale presents.
- Both, OS 2.0 and 2.1 have the ROM-Version 37.175!
- So the command returns if the locale.library exists on the system.
-
- - UseCatalog Catalogname
- Opens the catalog for your programm.
- Might by your program is called BB2Program the catalog should
- be called BB2Program.catalog.
- But you' re also able to open a catalog from an other program,
- like Term.catalog.
- The catalog files are in an IFF format!!!
- Read the Commodore documentation of it...
-
- - FreeCatalog
- Removes the catalog that you opened with UseCatalog.
-
- - GetLocaleStr #StringNumber,DefaultString$
- Read a string from the catalog that you opened with UseCatalog.
- You have to give a defaultstring to that command.
- If the asked string could be find in the catalog the default
- string will be returned.
- Else the string from the catalog will be returned.
-
- - PrtLib:
- - PrtText String
- The given String will be send to your printer.
-
- - Hardcopy Screen#,X,Y,Width,Height,PtrWidth,PrtHeight,Flags
- Send an image to your printer.
-
- - PrtCommand Command,Para1,Para2,Para3,Para4
- Sends a command to your printer.
-
- Note:
- Please read the doc files for the PrtLib!!!
-
- - RequestLib:
- - EasyRequest Result=EasyRequest([#Window,]title$,body$,gtext$)
- A intuition system requester will be open.
- Optional you could give a window number.
- The title$ is the displayed string in the top.
- body$ is the displayed text in the requester, a Chr$(10)
- means a linefeed.
- gtext$ is the text for the gadgets.
- Every gadgettext will be added by a '|'.
- Examples:
- "Ok" will only display one gadget in the requester.
- "Ok|Cancel" add two gadgets to it.
- "1|2|3|4|5" five gadgets are displayed.
-