home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / pascal / tplib21.zip / INSTALL.EXE / EXAMPLE.TXT < prev    next >
Text File  |  1993-05-31  |  4KB  |  131 lines

  1. 10
  2. #1:General 
  3. This is the first help section in this sample
  4. system.
  5.  
  6. This text fits within one window, and does not
  7. require splitting into separate pages.
  8. #2:Strings
  9. The STRINGS unit in the library provides
  10. enhanced string-handling features that are not
  11. found in Turbo Pascal itself.  
  12.  
  13. These include the ability to pad, truncate, and
  14. justify strings, and to allow on-screen display
  15. of strings, real numbers, integer numbers, dates,
  16. and times.  (Press PgDn for more text.)
  17. Notice how this help section has been split into
  18. two pages.  If the help window were to be made
  19. larger, the unit would automatically adjust the
  20. pages to suit.
  21.  
  22. The file EXSTR demonstrates some of the features.
  23. #3:Math unit
  24. The MATH and MATH87 units provide facilities
  25. for programs that must convert between
  26. various units of measurement.
  27.  
  28. Typical functions change degrees Fahrenheit
  29. to degrees Centigrade, or yards to inches.
  30. #4:Time
  31.  
  32. This unit provide facilities for handling
  33. dates and times.  You can input, manipulate,
  34. and display dates and times in a variety of
  35. ways, making this unit a help in many
  36. application programs.
  37. #5:ENHCON
  38. The Enhanced-Console unit will be found
  39. invaluable for any application program which
  40. uses on-screen editing.
  41.  
  42. In addition to routines for handling low-level
  43. activities, such as detecting which keyboard
  44. locks are active and changing the size of the
  45. cursor, there are routines for editing integers,
  46. real numbers, strings, dates, and times.  These
  47. all allow you to build user interfaces which can
  48. be used by the novice computer operator or
  49. professional alike.
  50.  
  51. #6:Using windows
  52. The ENHCON unit also provides all the routines
  53. necessary for a program to effectively use
  54. display windows.
  55.  
  56. The windows can be "tiled" (i.e. not overlapping)
  57. or "layered" (i.e. overlapping).  A window can be
  58. opened, closed, or selected any time, and there
  59. is also provision for a window to be removed from
  60. the screen but have its contents preserved for 
  61. later restoration.
  62.  
  63. Windows can have borders with headers and footers,
  64. and each program can have up to 255 windows
  65. defined at any one time.
  66. #7:Help system
  67. The help system built into the ENHCON unit can be
  68. used to provide your user applications with an
  69. on-line, "pop-up" help system.
  70.  
  71. A help index is automatically built and formatted,
  72. thus allowing the programmer to concentrate on
  73. actually writing the help text rather than having 
  74. to spend considerable time on layout details.
  75. General and context-sensitive help is available at
  76. the touch of a key, and the unit's operation is
  77. transparent to the calling program.
  78.  
  79. The on-line help system has very few limitations.
  80. First, there can be a maximum of 1,000 lines in
  81. each section.  Second, each help system can have
  82. a maximum of 255 sections.
  83.  
  84. The second limitation can be overcome for very
  85. large application programs by having multiple
  86. help files.  The TPLIB reference manual
  87. explains how to accomplish this without too
  88. much difficulty.
  89.  
  90. Many large commercial programs have an on-line
  91. help system, and with the complexity of much
  92. modern software it is hardly surprising.
  93.  
  94. This unit gives you the opportunity to give
  95. your own programs the same touch.  Indeed, you
  96. may find that programs that previously required
  97. a printed manual now require only the help text
  98. provided with the software.
  99. #8:Standard error access
  100. A simple unit which allows access to the standard
  101. error device.
  102.  
  103. The sample program EXSTDERR demonstrates this.
  104. #9:Critical errors
  105. Another simple unit which allows the operating
  106. system's critical-error handler to be restored
  107. for a particular program.
  108.  
  109. It is also possible for a program to have its 
  110. own error handler, although such a task should
  111. only be attempted by experienced programmers.
  112. #10:Comments
  113. Please remember that your comments and
  114. suggestions for future version of Turbo Pascal
  115. Library are always welcome.
  116.  
  117. It is my aim to provide programmers like myself
  118. with the development tools they require.
  119.  
  120.  
  121.  
  122. Send your comments to:
  123.  
  124.                 Paul Coxwell
  125.                 30 Alford Road
  126.                 Sutton-on-Sea
  127.                 LN12 2HH
  128.                 England
  129. #
  130.  
  131.