home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / tvision / vlstde / read.me < prev    next >
Encoding:
Text File  |  1992-02-12  |  1.9 KB  |  38 lines

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