home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / pascal / 5088 < prev    next >
Encoding:
Text File  |  1992-08-29  |  1.2 KB  |  28 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!dcatlas!joet
  3. From: joet@dcatlas.dot.gov (Joe Trott)
  4. Subject: Re: Displaying many discrete screens
  5. Message-ID: <1992Aug28.164840.9047@dcatlas.dot.gov>
  6. Organization: U.S Dept. of Transportation
  7. References: <2A91A4FC.10661@orion.oac.uci.edu>
  8. Date: Fri, 28 Aug 1992 16:48:40 GMT
  9. Lines: 17
  10.  
  11.  
  12. I created a simple "help" system for some of my apps that used multiple
  13. screens like this.  The screens file contained keywords in front of each
  14. actual screen, with appropriate delimiters.  My help unit "compiled" this
  15. (human readable) file into two files, an index based on the keyword, and
  16. a file of the actual screens.  Throughout the application, a global variable
  17. was updated to contain the most relevant keyword.  When the user requested
  18. help, the application saved the current screen (procs for this are well
  19. documented in the TP manuals), looked up the relevant help screen from the
  20. index file (this could be kept in memory as an array for quick searching),
  21. and displayed it.  When the user left the help screen, the original
  22. application screen was restored.
  23.  
  24. Hope this helps; I'll dig up the code if you need more information.
  25.  
  26. -JTT
  27.  
  28.