home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_code1 / big_list / readme.txt next >
Text File  |  1993-12-20  |  2KB  |  47 lines

  1.  
  2. Text and List Boxes can only hold a maximum of 64K. This program 
  3. is an attempt to simulate a List Box and view files that are much 
  4. larger using a Picture Box and a Vertical Scroll Bar.
  5.  
  6. The file is read into a Huge Array.  Note that the FileArray() is 
  7. dimensioned as:
  8.  
  9. Dim FileArray(0 To 10000) As String * 80
  10.  
  11. You can change the max number of elements and the fixed line size 
  12. (the 80) if you have different requirements. 
  13.  
  14. The lines are "displayed" in Picture2 (which is off-screen) and 
  15. then copied to Picture1 which is the "List Box" that you see.  As 
  16. I understand it, it's faster to do it this way rather than print 
  17. the lines directly to Picture1 (with Picture1.AutoRedraw = true). 
  18.  
  19. I'm not sure if the scrolling occurs at a fast enough rate or 
  20. not.  I have a Gateway Pentium and everything is fast <g>. (If 
  21. you know a faster way to do it, please let me know!) 
  22.  
  23. NLinesToShow is set to 15 in Form_Load.  This is the number of 
  24. lines that are displayed in the "List Box" (Picture1).  You can 
  25. change it if you want to (by changing the 15).  The height of 
  26. Picture1 is determined by the font, the font size, and 
  27. NLinesToShow. If you want to change the font and/or font size, 
  28. change it for Picture2 (not Picture1).  
  29.  
  30.  -> Note that you will need to edit the TEXTVIEW.MAK file if your 
  31.     CMDIALOG.VBX is not in the C:\WINDOWS\SYSTEM directory 
  32.  
  33. Use the code if you find it useful.  No cost, no warranty.
  34.  
  35. If you have any questions, comments, or suggestions, feel free to 
  36. zap me a message. I usually hang out in MSBASIC, Section 5.
  37.  
  38. Bob Craig             CIS: 70042,1041          December 20, 1993.
  39. Salt Spring Island
  40. BC Canada
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.