home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / TURBOPAS / PASCSCR.LBR / DOSCREEN.DOC next >
Text File  |  2000-06-30  |  3KB  |  81 lines

  1. ------------------DOSCREEN.PAS------------------------
  2.                   by Steve Cohen
  3.                      2/11/85
  4.  
  5. DOSCREEN.PAS is a turbo-pascal program that does the most primitive
  6. part of screen generation.
  7.  
  8. It produces two output files
  9.  
  10. 1> a .PAS file which contains two procedures that will be a big part of
  11.    Full-Screen IO programs. Their syntax and names match those of Borland's
  12.    B-TREE.Pas sample program that was distributed with Turbo-Toolbox.
  13.    These procedures are:
  14.  
  15.      -- OutForm: Prints the prompts that will appear on the screen in their
  16.                  proper locations.
  17.  
  18.      -- ClearForm: Erases anything written in the entry fields, but leaves
  19.                    the prompts intact.  This may seem trivial, but the
  20.                    co-ordinates of the gotoxy statements contained here will
  21.                    be the coordinates to start whateve input routines you
  22.                    write.
  23.  
  24.      -- Also included in this .pas file is a "main program" which will
  25.         compile under Turbo, and serve as a test of the outform procedure.
  26.         You'll almost certainly want to throw the "main program" away once
  27.         you've incorporated the routines into your program.
  28.  
  29.  2> A .SCR file which contains the screen in the same format as DOSCREEN
  30.     stores it in memory which makes it accessible for further editing.  it
  31.     too can be thrown away when no longer needed.
  32.  
  33. DOSCREEN Editing Commands - Basically follow Wordstar except:
  34.   Fixed 8 space tabs only.
  35.   Going beyond the a border of the screen takes you to the other side.
  36.   i.e. Exceeding the right margin takes you to the left side of the next line;
  37.        Exceeding the bottom margin takes you to the top and vice versa.
  38.   There may be one or two other exceptions.  You can have fun expanding
  39.   or changing these.
  40.  
  41. SYNTAX:  Field tags can contain any character except '_'.  They may
  42. contain up to two consecutive spaces.  Changing the procedure FormStrings
  43. can change any of this.  Field Data Entry Blanks should contain only
  44. '_' characters -- even if you intend to use others as in date fields.
  45. (e.g. __/__/__ should be handled in Doscreen as ________  When you write
  46. you input routines you can change them).  The only purpose of these '_'
  47. as far as DOSCREEN is concerned is to count the number of spaces to blank
  48. out.
  49.  
  50.  
  51. -----------------------------------------------------------------
  52.  
  53. GETTING STARTED:
  54.  
  55. You may get a 'whiff' of this program's capabilities by doing the following:
  56. 1> RUN the file SAMPLE.PAS
  57.  
  58. 2> Compile Doscreen.pas under turbo to a .COM file.
  59.  
  60. 3> RUN Doscreen:  Immediately press Ctrl-F.  This will bring up the
  61.    sample screen for editing.  It should look Identical to the one you
  62.    just saw when you ran sample, except for the lines of '-' at the top
  63.    and bottom of the screen.
  64.  
  65. 4> Now edit the screen however you like, saving it to whatever file you
  66.    like.  If you call it 'SAMPLE', however, the original sample will be lost.
  67.  
  68. ________________________________________________________________
  69.  
  70. As you can see, this program may serve as one building block in a
  71. DataBase type program using the Turbo ToolBox.  That was my intention.
  72.  
  73.  
  74. I'd like to see any questions or improvements anyone wants to make in
  75. it.  Send them to
  76.  
  77. Steve Cohen
  78. 3655 N. Hermitage
  79. Chicago, IL 60613
  80.  
  81.