home *** CD-ROM | disk | FTP | other *** search
- 2-12-92
-
- This is a little demonstration of how to do a virtual list box in TurboVision.
- In the zip file are all the .CPP and .HPP files used to build the demo.
- However, since the database used is a dBase file, accessed through CodeBase++,
- you will not be able to compile the examples unless you have the CodeBase++
- libraries.
-
- The example shows how to use the virtual list box to create a database browse
- screen. The fields of each record are displayed as a single string in the
- list box. Hitting the enter key will pop up the edit window, allowing you to
- modify the individual records. Crtl-PageUp moves you to the top of the file and
- Crtl-PageDown takes you to the bottom.
-
- TListViewer has some limitations for this application that you might want to
- be aware of. The member variables "item" and "focused" are defined as ushort.
- If you anticipate using the VListBox class for a file larger than 65535 records
- you will want to change these to longs. Remember to also change the functions
- that use these variables to initialize other variables, for example: draw()
- and handleEvent(), and those functions that are passed these variables, such as
- focusItem(). You will then need to rebuild TV.LIB using Borland's BUILD.BAT.
- Of course, if you've already tried using BUILD.BAT with Borland C 3.0, you know
- that it doesn't include a 3.0 option! You must modify this, too! Way to go,
- guys.
-
- If you have any questions, please feel free to leave me a message or call me
- directly.
-
- Gregory K. Miskin
- Computer Resources Group
- (801) 226-3142 or 798-0223
-
-
- Computer Resources Group is a consulting company with experience in C, C++,
- Pascal, COBOL (can you believe it?), dBase, bTrieve, TurboVision, Zinc GUI,
- object-oriented design, object-oriented programming, Novell networks, and a
- bunch of other stuff I can't even think of right now.