VIEWBOX.ZIP *UPDATED*
VIEW BOX v1.0 - Just cut & paste this subroutine into your
own program. You can now display text files in a window. Use the
arrow, PgUp, PgDn, Home, and End keys to scroll through the file.
My program uses a dynamic array to index the file to display.
Then using fast binary access to load the file. It is able to
display files megabytes in size with out using much of basic's
memory. You determine where you want the viewbox window
displayed. Just pass the location and name of file. It will allow
left/right scrolling for files wider than your window. For files
over 6000 lines long, use the /AH option when loading QuickBasic
4.5 I noticed a few people over the year have requested a
subroutine like this one. There are a few programs floating
around. I found most of them were too complicated. Some didn't
work right or work at all.
This version now includes the ability to
save/restore the screen. There is a new highlight bar option too
that allows you to scroll through the text file. The subroutine
will return the line number when you press enter. I also did some
code cleanup and added a few other items. See the file viewbox.txt (included in archive) for more information.
CURSDRAW.ZIP
CURSOR DRAW V1.0 - This nifty FREEWARE utility program helps you
to easily create mouse cursors for your VGA programs that you
write in BASIC. The program can save your designs in three
different formats, Binary, Hex, and Basic Data formats. The
binary and hex formats can be accessed by most programming
languages including Basic. You just read them in using file
access commands. The (Basic Data) format can be merged into your
basic program which you then can use the READ statement to load
the mouse cursor. I wrote Cursor Draw and it's demo files using
QuickBasic 4.5 The demo files demonstrate how to use your mouse
cursor in QB45 only. You will need to seek help elsewhere on how
to change the mouse cursor in other programming languages. The
demo files also demonstrate how to program the mouse in QB45
using very simple commands.
Sorry, at this time the source code for Cursor Draw is not included with the program. Once I've added all the comments and cleaned up the code I will include it. For anyone who REALLY has to have the QB45 source code can EMAIL me for it. I will send it back to you with some notes. Experienced basic programmers should be able to figure out the code with little or no problems. The source code for the demo files and another utility file BIN2HEX is included. The BIN2HEX utility converts binary numbers '1111010101011111' to hexadecimal '&HF55F'.
GIF2BIN.ZIP
GIF2BIN - Helps you to add graphics to your basic programs. This
small utility converts 256 color graphic GIF files to a binary
data format that your basic program can easily read into an
array. Use your graphics editor to create a 256 color gif no
larger than 320x200. Because of the 256 color limit, the
converted pictures can only be displayed in screen mode 13.
Most of the basic code on this page was written using the QuickBasic 4.5 editor. These small utilities will aide you in writing your own programs. Except where noted, all of the utilities on this page were written to help you write programs using the VGA screen mode 13.
All the programs have been archived using PKWARE's compression. If you don't have a zip extraction program yet, then try going to the WINZIP home page. This program that can be used to extract the files from the zipped archives.