Progress window, bevel boxes, icons as ga
- Size
- 16K (16,841 bytes)
- Added
- 2026-11-20 02:43
- Downloads
- 3
- Long Description
- Here is my slightly useful AmigaE modules. There are probably loads of bugs in them. :). You do not need permission to use them in your programs, but if you do use them, I wouldn't mind an email :). -------------------------------------------------------------------------------- mygfxtools.m mydrawbox() ----------- NAME: mydrawbox() SYNOPSIS: mydrawbox(rp, dri, x, y, x2, y2, type, recessed, light, lightpen, darkpen) DESCRIPTION: Draw a varitey of bevel boxes in a rastport INPUT: rp - rastport dri - screen drawinfo x - left coord y - top coord x2 - right coord y2 - bottom coord type - type of box to draw, a number ranging from 1 to 6... 1 = Box 2 = Bevel 3 = Smooth bevel 4 = Embossed 5 = Ridge 6 = Wide ridge 7 - Smooth ridge recessed - if TRUE the box will be drawn recessed light - if TRUE the light and dark pen will be used instead of the black and white pens. lightpen - pen number of light colour darkpen - pen number of dark colour myscrollraster() ---------------- NAME: myscrollraster() SYNOPSIS: myscrollraster(rp, x, y, x2, y2, deltax, deltay) DESCRIPTION: Works exactly like ScrollRaster(). myscrollraster() uses BlitCopy(), and doesn't clear the new area of raster, which is useful for when you want to have clean looking scrolling. INPUT: rp - rastport x - left coord y - top coord x2 - right coord y2 - bottom coord deltax - how many pixels to scroll horizontally deltay - how many pixels to scroll vertically BUGS: Can't handle scrolls larger than the area to scroll. But because this function doesn't clear the new area of raster, there wouldn't be any visual difference anyway. -------------------------------------------------------------------------------- list.m insertinlist() -------------- NAME: insertinlist() SYNOPSIS: insertinlist(list, str) DESCRIPTION: Will take a string of integers seperated by slashes, and insert them into an ARRAY. INPUT: list - an array str - a string of integers seperated by slashes mergelist2str() --------------- NAME: mergelist2str() SYNOPSIS: mergelist2str(str, list, hex = FALSE) DESCRIPTION: Will take an array of integers and put them into a string seperated by slashes. INPUT: str - a string of integers seperated by slashes list - an array of integers hex - if TRUE, put a $ before each integer -------------------------------------------------------------------------------- execlists.m addName() --------- NAME: addName() SYNOPSIS: addName(list, str, prednode) DESCRIPTION: Add a node to an execlist INPUT: list - pointer to an execlist str - string to insert in the list prednode - node to insert string into list after freeNode() ---------- NAME: freeNode() SYNOPSIS: freeNode(list, num) DESCRIPTION: Remove a node from an execlist INPUT: list - pointer to an execlist num - number of node to remove freeNameNodes() --------------- NAME: freeNameNodes() SYNOPSIS: freeNameNodes(list) DESCRIPTION: Remove all nodes from an execlist INPUT: list - pointer to an execlist findNodeNumber() ---------------- NAME: findNodeNumber() SYNOPSIS: num