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