home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 2 / ctrom_ii_b.zip / ctrom_ii_b / PROGRAM / PASCAL / TVAPP / README.DOC < prev    next >
Text File  |  1993-09-30  |  3KB  |  53 lines

  1.                    28-Line Mode For TurboVision
  2.  
  3.      If you're a Turbo Pascal programmer, then APP28.PAS will 
  4. give you another video option in your TurboVision programs.
  5.      As you know, the TurboVision constant smFont8x8 can be used 
  6. to put TurboVision programs into 43 or 50 line mode (depending 
  7. on whether they're running on an EGA or VGA adaptor).
  8.      APP28.PAS contains a new smXXXX constant, smFont8x14,
  9. along with TApp28, a simple descendant of TApplication that 
  10. knows what to do with the new smXXXX constant.  TApp28
  11. overrides only one TApplication method--SetScreenMode. 
  12.      Calling "SetScreenMode(ScreenMode or smFont8x14)" will put a
  13. TurboVision application into 28-line mode--if it is descended
  14. from TApp28 instead of TApplication, and IF IT IS RUNNING ON A
  15. VGA ADAPTOR.  If it is not running on a VGA adaptor, no harm will
  16. be done, and you will still be able to toggle between 50 and 25 
  17. line modes using smFont8x8.
  18.      Why use 28 line mode?  Most of the time you won't want to,
  19. but there may be situations where you'll be glad to have three
  20. extra lines with little loss in readability.  If you've ever
  21. tried to work on a 50-line screen, you'll know both that it gives
  22. you a great over-view of what you're doing, and that it strains the
  23. heck out of your eyes.  28-line mode gives you more lines to work
  24. with and doesn't strain your sight at all.
  25.      Another reason to use TApp28 is to provide the users of your
  26. program with another video option--it will make your programs
  27. seem a little spiffier if users can choose from a menu like this:
  28.  
  29.                 VIDEO PREFERENCE
  30.                  25 Line Mode
  31.                  28 Line Mode
  32.                  43/50 Line Mode
  33.  
  34.      For an example of a way to toggle between modes, see the 
  35. HandleEvent method in TEST28.PAS.
  36.      TApp28 is completely free.  The source code is provided so
  37. that you can improve it or customize it to your taste.  But
  38. please copy and distribute TApp28 unchanged and accompanied by 
  39. all the files listed below.
  40.  
  41.      APP28.PAS   -- contains TApp28, smFont8x14, and DetectVGA.
  42.      TEST28.PAS  -- contains source code for demo program.
  43.      TEST28.EXE  -- demo program.
  44.      FILE_ID.DIZ -- bulletin board description of TApp28.
  45.      README.DOC  -- this file.
  46.  
  47.      Extensive testing has not been done on TApp28.  I do not
  48. accept any liability nor make any guarantees.  Please let me 
  49. know if you have any feedback or encounter any problems. 
  50.  
  51. Ed Jordan
  52. 9/29/93
  53. Compuserve 73004,175