home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / TURBOPAS / INTR_DMO.ZIP / TSCREEN.DOC < prev   
Encoding:
Text File  |  1985-11-19  |  38.0 KB  |  843 lines

  1.  
  2.  
  3.                               ********************* 
  4.                               *   T-SCREEN INDEX  * 
  5.                               *********************
  6.       
  7.  
  8.                MAJOR FUNCTIONS ( an overview )                 Page 1
  9.  
  10.                ENTER/EDIT SCREENS                              Page 2-5
  11.  
  12.                        Terminology                             Page 2
  13.                                        Line Set
  14.                                        ForeGnd/BackGnd
  15.                                        Alt
  16.                                        Num/Caps
  17.  
  18.                        Enter/Edit Functions                    Page 3-5
  19.                                        ESC     Exit/Cancel
  20.                                        F10     Help
  21.                                        F1      Draw
  22.                                        F2      Alternate Characters
  23.                                        F3      Save a T-SCREEN
  24.                                        F4      Load a T-SCREEN
  25.                                        F5      Frame an area
  26.                                        F6      Paint an area
  27.                                        F7      Move/Copy an area
  28.                                        F8      Set Foreground attributes
  29.                                        F9      Set Background Attributes
  30.  
  31.                DEFINE INPUT FIELDS                             Page 6-8
  32.  
  33.                        Field Definition                        Page 6-7
  34.                                        Display Attributes
  35.                                        Mark Start
  36.                                        Fill Character
  37.                                        Mark End
  38.                                        Type
  39.                                        Message
  40.                                        Re-display Attributes
  41.  
  42.                        Reset Definitions                       Page 8
  43.  
  44.                        Print Definitions                       Page 8
  45.  
  46.                CONVERT TO BLOAD                                Page 9
  47.  
  48.                USING T-SCREENS WITH BASIC                      Page 9-10
  49.  
  50.                T-SCREEN SYSTEM UTILITIES                       Page 11
  51.                                        Copy Screen
  52.                                        Rename Screen
  53.                                        Delete Screen
  54.                                        How to Copy Diskettes
  55.                                        How to Print Screens
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.                               *********************
  68.                               * T-SCREEN OVERVIEW *
  69.                               *********************
  70.  
  71.          T-SCREEN is a tool. Like any good tool it has been precision
  72.          crafted to give you benefits that far exceed its' cost when it
  73.          is put to use. Also, like a good tool it has been designed to
  74.          be easy to use, even for the apprentice.
  75.  
  76.          To this end 'help', in the form of information screens, is
  77.          available for every function. Help is summoned by pressing the
  78.          F10 key. In less than two seconds it will appear. When you are
  79.          ready to go back to work a keystroke returns you instantly. 
  80.       
  81.                                  MAJOR FUNCTIONS 
  82.  
  83.      F1  The primary function of T-SCREEN is the design of useful data 
  84.          input and information screens to be used by your BASIC and 
  85.          Pascal programs. Selecting the Enter / Edit function ( F1 ) 
  86.          will give you complete access to the power and flexibility of 
  87.          your computer as you design these screens.  
  88.       
  89.      F2  If the screens you are designing are to be used for data input,
  90.          the Define Input Fields function ( F2 ) allows you to easily 
  91.          and quickly define the location, length, type, attributes, and 
  92.          message pointer for up to 70 input fields. This data is stored 
  93.          with the screen for easy access by your programs.
  94.       
  95.      F3  The Convert to BLOAD format function ( F3 ) converts T-SCREENs 
  96.          to a format that can be used by BASIC. See 'Using T-SCREENs 
  97.          with BASIC' for information on how to incorporate T-SCREENs 
  98.          into your BASIC programs. 
  99.       
  100.      F4  Use the System Utilities function ( F4 ) when you want to see 
  101.          what screens are on the current drive. In addition,
  102.          sub-functions permit you to copy, delete and rename screens.
  103.  
  104.      F5  This selection is not really a function. It is an index to the
  105.          on line documentation. The screen names are listed for each of
  106.          the help and information screens with a brief description of
  107.          the content. Since any of these screens may be edited using
  108.          T-SCREEN you may modify and/or add to the on line help.
  109.  
  110.                                  HOW TO ORDER
  111.  
  112.          This is the same program reviewed in the November issue of
  113.          Computer Language magazine. It was listed at $29.95 for either
  114.          the color or monochrome version (object code).  I have decided to
  115.          make it available on a user supported, "shareware" basis. For
  116.          both the monochrome and color versions, including source code,
  117.          (4 disks) send your check or money order for $20.00 to:
  118.  
  119.                              precision logic systems
  120.                              2012 Lake Air Drive
  121.                              Waco TX, 76710
  122.  
  123.          or call:            (817) 753-2182
  124.                              with your Visa or Master Card number.
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.          Page 1
  133.  
  134.  
  135.                             *************************
  136.                             * T-SCREEN Enter / Edit *
  137.                             *************************
  138.  
  139.       
  140.          The Enter / Edit function permits the creation of new T-SCREENs 
  141.          and the modification of existing T-SCREENs. When using this 
  142.          function a number of sub-functions are available as described 
  143.          below. 
  144.       
  145.          When you select the Enter / Edit function the screen is cleared 
  146.          to the current background color, and the cursor is positioned 
  147.          in the upper left corner of the screen. The bottom three lines 
  148.          of the screen provide information as to the the valid 
  149.          sub-functions available and the current status of the following 
  150.          items. 
  151.  
  152.      Line Set:   The term 'Line Set' refers to one of four complete sets 
  153.                  of line drawing characters. The current line set may be 
  154.                  accessed two ways. In the TEXT mode, which is the 
  155.                  default mode when you select the Enter / Edit function
  156.                  the line set characters are displayed by holding down 
  157.                  the Ctrl key while pressing one of the function keys.
  158.                  We will use the notation cF1 - cF10 to indicate that 
  159.                  the Ctrl key is to be held down while the desired 
  160.                  function key is pressed. In the DRAW mode ( see F1 
  161.                  below ) the current line set is used for drawing, using 
  162.                  the cursor control keys. You may also change the 
  163.                  selected line set while in the DRAW mode. 
  164.       
  165.      ForeGnd:    This refers the the foreground attribute and/or color 
  166.                  that will be used for any character displayed. The 
  167.                  foreground may be changed using sub-function F8.  
  168.       
  169.      BackGnd:    This refers the the background attribute and/or color 
  170.                  that will be used for any character displayed. The 
  171.                  background may be changed using sub-function F9.  
  172.       
  173.      Alt:        There are a number of special characters that your 
  174.                  computer is capable of displaying that are not usually
  175.                  easy to access using the keyboard. T-SCREEN gives you 
  176.                  easy access to all of these characters. They are 
  177.                  displayed by Holding down the Alt key or the Ctrl key 
  178.                  while pressing another key. To see what character is
  179.                  produced by which 'other' key do the following. 
  180.  
  181.                  1. Select the Enter / Edit function from the Main Menu. 
  182.                  2. Press F2 to enable the alternate character set. 
  183.                  3. Press F10 for a special character help screen. 
  184.       
  185.                  Note that some keys display a different character 
  186.                  depending on whether the Alt status is ON or OFF. The 
  187.                  Alt status is switched ON and off using the F2 key as 
  188.                  described below. 
  189.       
  190.      Num/Caps:   One complaint about the IBM-PC keyboard is the fact 
  191.                  that you cannot determine the status of the Num Lock or 
  192.                  Caps Lock key without pressing a key and seeing the 
  193.                  result. The Num and Cap status indicators solve this 
  194.                  problem when you are using T-SCREEN. The indicator will 
  195.                  be high-lighted when the associated status is active. 
  196.  
  197.  
  198.           Page 2
  199.  
  200.  
  201.                             *************************
  202.                             * T-SCREEN Enter / Edit *
  203.                             *************************
  204.  
  205.       
  206.          Two functions that are available just about all the time you 
  207.          are using T-SCREEN are ESC (Exit or Cancel) and F10 (Help). 
  208.          Before describing the functions that are unique to Enter / Edit 
  209.          these two general functions will be briefly described. 
  210.       
  211.       
  212.      ESC Exit:   You will find that the ESC key is just the thing when 
  213.                  you make a selection and then decide, "Gee, I didn't 
  214.                  really want to do this."  In most cases ESC cancels a 
  215.                  function and returns you to where you were before you 
  216.                  selected the function. If you are at the "Main Menu" 
  217.                  and press ESC you will be prompted to verify that you 
  218.                  want to exit T-SCREEN. Pressing "Y" at that point ends 
  219.                  the T-SCREEN session. 
  220.       
  221.      F10 Help:   This function is just the ticket when you are wondering
  222.                  "Now what am I supposed to do?".  F10 keeps track of 
  223.                  what you are doing, and usually can give you a quick 
  224.                  answer to that question. When you press F10 a "Help" 
  225.                  screen overlays all or part of the current screen. 
  226.                  After you have the information you need pressing any 
  227.                  key (except the 'shift' control keys) will instantly
  228.                  re-display the current screen and you may proceed. 
  229.       
  230.                   
  231.                  Now lets look at the other functions and mode 
  232.                  selections that are at your disposal when you are using 
  233.                  Enter / Edit to create or modify a T-SCREEN. 
  234.       
  235.       
  236.      F1 Draw:    This is really more of a mode selection than a 
  237.                  function. When you are in the DRAW mode you may use the 
  238.                  F1 - F4 keys to change the current line set as 
  239.                  described earlier. You may use the cursor control keys 
  240.                  on the numeric key pad to DRAW using the current line 
  241.                  set, hence the distinction between the DRAW and TEXT 
  242.                  modes. In addition the rest of the keys may be used to 
  243.                  display text as usual. Also the F5 - F9 keys may be 
  244.                  used to perform the functions that are described below
  245.                  just as in the TEXT mode.
  246.  
  247.      F2 Alt:     Again this is not so much a function as a mode
  248.                  selection. Pressing F2 toggles the alternate character
  249.                  sets available when you press certain keys while
  250.                  holding the Alt key. The set currently active is
  251.                  indicated by the Alt status indicator as described on the
  252.                  previous page. When the Alt indicator is high-lighted
  253.                  you may see all of the alternate characters and the key
  254.                  combinations that display them by pressing F10.
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.          Page 3
  264.  
  265.  
  266.                             *************************
  267.                             * T-SCREEN Enter / Edit *
  268.                             ************************* 
  269.       
  270.       
  271.      F3 Save:    This function permits you to save your creations on 
  272.                  disk so they may be used by your application program or 
  273.                  retrieved for later modification by T-SCREEN. When you 
  274.                  press F3 you will be prompted to enter a screen name. 
  275.                  Screen names may be up to 8 characters long and may use 
  276.                  any character A - Z or the digits 0 - 9 or the dash (-) 
  277.                  character. One exception is that the first character 
  278.                  must be A - Z. In addition you may specify a disk drive 
  279.                  by entering a valid drive letter (A - P) followed by a 
  280.                  colon (:) as a prefix to the name. E.g. B:TEST-SCR 
  281.                  specifies a screen named TEST-SCR on drive B. The name 
  282.                  of the current active screen will be displayed as a 
  283.                  default. If you press <ENTER> that is the name that 
  284.                  will be used. If no screens have been accessed the 
  285.                  default name is NONE. It would probably be best not to 
  286.                  use NONE as a screen name. If a screen already exists 
  287.                  with the name you selected, you will be prompted to 
  288.                  enter "Y" to verify that you want to update the screen 
  289.                  or ESC to cancel the request. 
  290.       
  291.      F4 Load:    Use this function when you want to edit (modify) an 
  292.                  existing screen. If the current screen has been 
  293.                  modified, (actually if any key has been pressed since 
  294.                  it was last saved or loaded) you will be prompted to 
  295.                  indicate whether or not you want to save the current 
  296.                  screen before loading a different screen. After you 
  297.                  have saved the current screen (if desired) you will be 
  298.                  prompted to enter a screen name as described above. If 
  299.                  the name you select does not exist a message to that 
  300.                  effect will be displayed and no screen will be loaded 
  301.                  otherwise the selected screen will be displayed. 
  302.       
  303.      F5 Frame:   Frame uses the current line set to draw a frame around 
  304.                  any area of the screen that you select. When you press 
  305.                  F5 you will be prompted to mark the "first corner" of 
  306.                  the area to be framed. This is accomplished by moving 
  307.                  the cursor to the desired location and pressing F5. 
  308.                  Next you are prompted to mark the "opposite corner". 
  309.                  Move the cursor to a position diagonally opposite the 
  310.                  corner first marked and press F5 again. The frame will 
  311.                  be drawn instantly. If the corners marked are on the 
  312.                  same row or are in the same column a straight line is 
  313.                  drawn instead of a frame. 
  314.       
  315.      F6 Paint:   The paint function is used to erase an area using the 
  316.                  current background color and/or attribute. Optionally 
  317.                  you may change the display attributes of the text in 
  318.                  any selected area. First mark the area to be painted as 
  319.                  described for the frame function above. After the 
  320.                  "opposite corner" is marked you will be prompted to 
  321.                  press F6 to change the attributes of the text or F7 to 
  322.                  erase the area using the current background attribute. 
  323.       
  324.       
  325.       
  326.       
  327.  
  328.          Page 4 
  329.  
  330.  
  331.                             ************************* 
  332.                             * T-SCREEN Enter / Edit * 
  333.                             ************************* 
  334.       
  335.       
  336.      F7 Copy:    The copy function is used to copy or move an area from 
  337.                  on place to another on the current screen or from one 
  338.                  screen to another. Notice that when you press F7 to 
  339.                  select this function you are given the option of 
  340.                  copying or moving the area last marked in addition to 
  341.                  the option of marking the "first corner". If you have 
  342.                  already marked an area, even on a different screen, you 
  343.                  may copy or move it to the cursor location on the 
  344.                  current screen by pressing F6 or F7 as indicated. To 
  345.                  mark an area to be copied/moved follow the procedure 
  346.                  described for the frame function above. After the 
  347.                  "opposite corner" is marked you will be prompted to 
  348.                  mark the "Move To corner". At this point, if you want 
  349.                  to move the marked area to a different screen press ESC 
  350.                  to cancel the move, load the destination screen using 
  351.                  the F4 function as described above and re-select the 
  352.                  Copy function by pressing F7. Otherwise move the cursor 
  353.                  to the upper left corner of the destination location. 
  354.                  In either case you may now press F6 to copy the marked 
  355.                  area to the current cursor location or press F7 to move 
  356.                  the marked area to the current cursor location and 
  357.                  ERASE the marked area ON THE CURRENT SCREEN. If you 
  358.                  select the move option, overlaps are handled by erasing 
  359.                  that portion of the marked area that is not overlapped. 
  360.                  If you are copying from one screen to another you will 
  361.                  probably want to use the copy option rather than the 
  362.                  move option. 
  363.       
  364.      F8 ForeGnd: This function permits you to select the foreground 
  365.                  attribute for the text to be entered. If you are using 
  366.                  the color version of T-SCREEN this includes all of the 
  367.                  allowable color selections. All of the valid attributes 
  368.                  are displayed and you make your selection by pressing 
  369.                  the function key associated with the desired attribute. 
  370.       
  371.      F9 BackGnd: This function permits you to select the background 
  372.                  attribute for the area surrounding each character that 
  373.                  is displayed. If you are using the color version of 
  374.                  T-SCREEN this includes all of the allowable color 
  375.                  selections. All of the valid attributes are displayed 
  376.                  and you make your selection by pressing the function 
  377.                  key associated with the desired attribute. 
  378.       
  379.       
  380.       
  381.       
  382.       
  383.       
  384.       
  385.       
  386.       
  387.       
  388.       
  389.       
  390.       
  391.       
  392.  
  393.          Page 5 
  394.  
  395.  
  396.                         ******************************** 
  397.                         * T-SCREEN Define Input Fields * 
  398.                         ******************************** 
  399.       
  400.       
  401.          If the screen you are designing is to be used as a data entry 
  402.          screen in your application program this function makes it 
  403.          possible for that program to be "screen independent". Screen 
  404.          independent data entry is the concept that your data entry 
  405.          program should not have to be concerned with how the input 
  406.          screen looks, what attributes to use when the data is entered 
  407.          and how to re-display it after it is edited, or even where on 
  408.          the screen the data is entered. T-SCREEN makes this concept a 
  409.          reality by permitting you to include all of this information 
  410.          and more right along with the screen image you have created. In 
  411.          fact the concept can even be extended to the point that, for 
  412.          the most part, you can even specify the edit criteria and a 
  413.          prompt "help" message for each field. This is all accomplished 
  414.          using F2 Define Input Fields.  
  415.       
  416.          When you select this function you will be prompted to enter a 
  417.          screen name. Enter the name of a screen as described for the F3 
  418.          Save function on page 4. The screen will be displayed. If 
  419.          fields have been defined previously they will be marked. The 
  420.          steps involved in defining fields is outlined below. 
  421.       
  422.      1.  Set Input Attributes 
  423.       
  424.          Set the foreground and background attributes that you want used 
  425.          when data is being entered into the field. This only has to be 
  426.          done once if all of the fields on the screen will use the same 
  427.          input attributes. Use the F8 & F9 functions to do this. 
  428.       
  429.      2.  Mark Start of Field 
  430.       
  431.          To mark the beginning of a field press F5. At this point you 
  432.          also have the option of exiting (ESC), reseting all fields 
  433.          (F1), or printing the field definitions on the printer (F7). 
  434.          These options are described at the end of this section. 
  435.       
  436.      3.  Define Field with "fill character" 
  437.       
  438.          Enter a number of "fill characters" equal to the maximum 
  439.          allowable field length. A fill character is simply a character 
  440.          that is used to make it easy for the person entering data to 
  441.          see how long the field is. The period and the underline 
  442.          character are popular choices. If you are using the input 
  443.          attributes to define the field, (reverse video for example) you 
  444.          might want to use a space for the fill character. 
  445.          If a field has been previously defined starting at the location 
  446.          marked you may view the current definition by pressing F7. 
  447.       
  448.      4.  Mark End of Field 
  449.       
  450.          After the field is defined with fill characters, the cursor 
  451.          will be one position past the end of the field. Press F5 at 
  452.          that point to mark the end of the field. 
  453.       
  454.       
  455.       
  456.       
  457.  
  458.          Page 6 
  459.  
  460.  
  461.                         ******************************** 
  462.                         * T-SCREEN Define Input Fields * 
  463.                         ******************************** 
  464.       
  465.       
  466.      5.  Enter Type Code 
  467.       
  468.          Next you are prompted to enter a type code. The type code can 
  469.          be any character that you can enter from the keyboard. You 
  470.          should set up a "convention" or "standard" that you use 
  471.          consistently so that your application program will be able to 
  472.          determine from the type code what standard edits should be 
  473.          applied to that field. Press F10 for help at this point or look 
  474.          below to see a suggested convention that we have found useful. 
  475.      
  476.                               Suggested Type Codes 
  477.       
  478.        A       Alphanumeric
  479.        D       Date
  480.        N       Numeric Only
  481.        O       Output (Display) Only
  482.      
  483.          Keep in mind of course that this is merely a suggested 
  484.          convention. Your application program determines what (if any) 
  485.          significance is attached to the type codes. 
  486.  
  487.  
  488.      6.  Enter Message Pointer 
  489.       
  490.          After you enter the Type code you are prompted to enter a "message 
  491.          pointer". This can be any number from 1 - 255. This number may then 
  492.          be used by your application to indicate which of a series of prompt 
  493.          or help messages to use with the field. 
  494.       
  495.      7.  Enter Re-display Attributes 
  496.       
  497.          Next you will have an opportunity to change the re-display 
  498.          attributes. This permits you to re-display the edited field using 
  499.          attributes different than those used as the data is input. In this 
  500.          way the input data can be made to stand out from other information 
  501.          on the screen. Once the re-display attributes are set you may press 
  502.          enter at this point to leave them unchanged. 
  503.       
  504.          At this point the field definition will be displayed in the 
  505.          message area and you are prompted to press any key to continue. 
  506.          When you press a key the cycle is repeated starting at step 2. When 
  507.          all fields have been defined press ESC to return to the main menu. 
  508.          The definitions are automatically saved. 
  509.       
  510.       
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.          Page 7 
  524.  
  525.  
  526.                         ******************************** 
  527.                         * T-SCREEN Define Input Fields * 
  528.                         ******************************** 
  529.       
  530.       
  531.      F1  Reset Field Definitions 
  532.       
  533.          Field definitions are stored in the order that the fields are 
  534.          defined. You will find that it is useful define the fields in the 
  535.          order that the data will be entered. By doing so the input section 
  536.          of your application may be reduced to a simple loop. While it is 
  537.          possible to change the input definition of an existing field you 
  538.          cannot change it's location or it's sequence. When changes of this 
  539.          type are necessary use the Reset Field Definitions function. All of 
  540.          the field definitions will be cleared (after a verification prompt) 
  541.          and you may re-define the fields as needed. 
  542.       
  543.      F7  Print Field Definitions 
  544.       
  545.          Prior to marking the start of a field in step 2, you may print a 
  546.          report listing the definitions of each field on the screen. You will 
  547.          find it helpful to have a field definition report as you work on your  
  548. application, and may want to include it with the application    documentation. 
  549. After a field is defined you will be prompted to        prepare the printer. 
  550. This report may be canceled at any time by      pressing ESC. 
  551.       
  552.       
  553.       
  554.       
  555.       
  556.       
  557.       
  558.       
  559.       
  560.       
  561.       
  562.       
  563.       
  564.       
  565.       
  566.       
  567.       
  568.       
  569.       
  570.       
  571.       
  572.       
  573.       
  574.       
  575.       
  576.       
  577.       
  578.       
  579.       
  580.       
  581.       
  582.       
  583.       
  584.       
  585.       
  586.       
  587.       
  588.              PAGE 8 
  589.  
  590.  
  591.                           ***************************** 
  592.                           * T-SCREEN Convert to BLOAD * 
  593.                           ***************************** 
  594.       
  595.       
  596.          This function converts a screen that you have created using 
  597.          T-SCREEN to a disk file that can be loaded into video memory by a 
  598.          BASIC program. The BASIC command that loads such a file is BLOAD so 
  599.          we will refer to it as a BLOAD file. Technically it is a binary 
  600.          file, but we don't need to get technical. 
  601.       
  602.          When you select F3 Convert to BLOAD format, there will be a short 
  603.          delay while T-SCREEN passes control to a BASIC program that does 
  604.          the conversion. After the BASIC program takes control you will be 
  605.          prompted to enter the name of the screen to be converted. Enter a 
  606.          file name as described for the F3 Save function on page 4. If the 
  607.          file doesn't exist an error message will be displayed and you will 
  608.          be prompted to enter another name. After the screen is converted it 
  609.          is be displayed and you are prompted to press any key to continue.
  610.          When you press a key you are prompted to enter another screen
  611.          name for conversion. If you don't want to convert any more 
  612.          screens enter END instead of a screen name. You will then return to 
  613.          the T-SCREEN main menu. 
  614.       
  615.                           ***************************** 
  616.                           * Using T-SCREEN with BASIC * 
  617.                           ***************************** 
  618.       
  619.          Once you have converted a T-SCREEN to a BLOAD file it is an easy 
  620.          matter to get it onto the video screen using a BASIC program. The 
  621.          BASIC subroutine to do so follows. Before you call this routine 
  622.          (using GOSUB) set SCRFILE$ to the name of the screen to be loaded 
  623.          plus a file extension of ".BSV". If some of the terminology is 
  624.          unclear refer to your BASIC reference manual under SCREEN 
  625.          (Statement), BLOAD, and DEF SEG. 
  626.       
  627.      99  REM ** Set text mode using video page 1 without changing burst mode 
  628.          and clear the screen. 
  629.      100 SCREEN 0,,1,1: CLS  REM: Use SCREEN 0,,0,0 for the monochrome version
  630.      105 REM ** Unless you are using a hard disk it takes about two seconds 
  631.          to BLOAD a screen. If you want to display a 'wait message' do so at 
  632.          this point. 
  633.      109 REM ** Set data segment to start of video memory. 
  634.      110 DEF SEG &HB800: REM ** Use &HB000 for the monochrome version 
  635.      116 REM ** The string variable SCRFILE$ should be assigned the name of 
  636.      117 REM ** the screen to be loaded plus a file extention of ".BSV"      
  637.      118 REM ** before this subroutine is called. 
  638.      119 REM ** e.g. SCRFILE$ = "TEST-SCR.BSV" 
  639.      120 BLOAD SCRFILE$,0: REM ** Load the BLOAD file identified by SCRFILE$ 
  640.      129 REM ** Restore the data segment to BASICs' default. 
  641.      130 DEF SEG 
  642.      139 REM ** Flip to video page 0 which now contains the screen. 
  643.      140 SCREEN 0,,0,0 
  644.      150 RETURN 
  645.       
  646.          As shown the screen will fill the top 22 lines of the video. Lines 
  647.          23 - 25 will be unaffected.  If you prefer to use the top three 
  648.          lines as your command area with the screen below change the ,0 to 
  649.          ,480 following BLOAD SCRFILE$ in line 120 above.  
  650.          E.g. BLOAD SCRFILE$,480
  651.       
  652.  
  653.          Page 9 
  654.  
  655.  
  656.                           ***************************** 
  657.                           * Using T-SCREEN with BASIC * 
  658.                           ***************************** 
  659.       
  660.          When input fields are defined using T-SCREEN the information about 
  661.          the fields is stored right along with the screen. BASIC is not able 
  662.          to get to the data when it is stored this way. So, When a T-SCREEN 
  663.          is converted to BLOAD format the field parameters (location, 
  664.          attributes, type, etc.) are separated from the screen image and are 
  665.          saved in a separate disk file. We refer to that file as the 
  666.          field parameter file. That file will have the same name as the 
  667.          screen with a file extention of ".PRM".  To see how the parameters
  668.          are used by an application study a listing of the LOAN.BAS program 
  669.          that is included as a sample application. 
  670.       
  671.  
  672.          The subroutine at 500 - 590 is a controled input routine that will not
  673.          result in string "garbage" being accumulated. The variable definitions
  674.          in line 100 are required for this routine.
  675.  
  676.          The subroutine at 40010 - 40085 reads and interprets the data in the
  677.          field parameter file. Note that the dimension statements in line 135
  678.          are required in addition to those in this subroutine.
  679.  
  680.          The subroutine at 41000 loads and displays the input screen as  
  681.          described above. The routine at 41100-41130 loads and displays the 
  682.          help screen.
  683.  
  684.  
  685.          Due to the limited memory management available from BASIC we are 
  686.          resticted to dealing with entire screens. As a result we cannot  
  687.          store our input prompts etc. in a T-SCREEN and call them from BASIC
  688.          as we can with Pascal. 
  689.       
  690.  
  691.          Note that the main data entry loop is from 5065 - 5290. The field 
  692.          indicated by IPTR is initialized based on the data from the 
  693.          parameter file. Then the input routine at 500 is called. This 
  694.          routine also relies on the information passed in the parameter
  695.          file to determine the length, type and display attributes of the 
  696.          field.
  697.  
  698.  
  699.          The input data is validated by the subroutine calls made from 5200.
  700.          The validation routines are from 1000 - 1320.
  701.  
  702.  
  703.          After the data is entered, validated and accepted the code from 
  704.          5400 - 5730 handles the calculation and output of the results.
  705.  
  706.  
  707.          While the performance of the BASIC version is far below that of the
  708.          Pascal version it is still a useful application. With some modifica-  
  709.          tion the BASIC version could probably be compiled with a substantial
  710.          improvement in performance as a result.
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.          Page 10 
  719.  
  720.  
  721.  
  722.                           ***************************** 
  723.                           * T-SCREEN System Utilities * 
  724.                           ***************************** 
  725.       
  726.          When you select F4 System Utilities from the Main Menu, the screen 
  727.          is cleared and the names of all of the screens in the current 
  728.          directory are displayed. Also the command area displays the 
  729.          sub-functions available at this point. If all you want to do is see 
  730.          what screens are available just press ESC to return to the main 
  731.          menu when you are ready. Also F10 Help is available with a brief 
  732.          description of each of the sub-functions. Those sub-functions are 
  733.          as follows. 
  734.       
  735.      F1  The Copy Screen function permits you to copy a screen. You will be 
  736.          prompted to enter the name of the screen to be copied and the name 
  737.          it is to be copied to. Enter the screen names as described for the 
  738.          Save screen function on page 4. If the screen to be copied does not 
  739.          exist an error message is displayed. If the name it is being copied 
  740.          to already exists you will prompted to verify that you want to copy 
  741.          over it. 
  742.       
  743.      F2  Using this function you may change the name of an existing screen. 
  744.          You are prompted to enter the name of an existing screen as 
  745.          described for the Load screen function on page 4. If the screen 
  746.          exists you will be prompted to enter a new name for the screen. The 
  747.          name must be a one that is not already used otherwise an error 
  748.          message is displayed. If the names entered meet those requirements 
  749.          the name is changed. 
  750.       
  751.      F3  The Delete Screen function is used to remove a screen that you no 
  752.          longer need. As above you are prompted to enter an existing screen 
  753.          name. If the screen exists it will be displayed and you will be 
  754.          prompted to verify the deletion by pressing "Y". You may cancel the 
  755.          deletion at that point by pressing ESC. 
  756.       
  757.      F4  This is really an information screen rather than a function. It 
  758.          displays the steps to be followed in copying an entire disk using 
  759.          the DISKCOPY program provided on your DOS disk. Those steps are as 
  760.          follows. 
  761.       
  762.          1. End the T-SCREEN session using ESC as usual. 
  763.          2. Place you DOS system disk in Drive A and type...  a: <ENTER> 
  764.          3. Type... diskcopy a: b: <ENTER> 
  765.          4. Insert the source disk (disk to be copied) and destination disk 
  766.              (disk that is to be copied onto) in the drives as prompted. 
  767.          5. Follow the prompts on the screen until the copy is complete. 
  768.          6. If you wish to restart T-SCREEN place a T-SCREEN disk in drive A 
  769.             and type... tsc <ENTER>  for the color version or tsm <ENTER>  
  770.             for the monochrome version. 
  771.       
  772.      F5  This is also an information screen which describes the procedure  
  773.          used when you want to print a T-SCREEN on your printer. It is 
  774.          in fact a simple matter of loading the screen as if you were going  
  775.          to edit it using the F4 Load Screen function. When the screen has  
  776.          loaded just hold the Ctrl key and then press the PrtScr key.
  777.          Non-printing characters will be printed as blanks.
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.        Page 11
  785.  
  786.  
  787.                         *********************************
  788.                         * Getting Started with T-SCREEN *
  789.                         *********************************
  790.  
  791.  
  792. As it is a well known fact that nobody reads the manual anyway, this sheet has 
  793. been added to give you the bare essentials to get you started.
  794.  
  795. 1.      DON'T use your master disk! Following the instructions in your DOS 
  796.        manual, DISKCOPY the master disk. While you're at it FORMAT a blank
  797.        disk using the /s parameter as described in your DOS manual.
  798.  
  799. 2.      With your master COPY in drive A: type...  copy a:loan*.* b: <ENTER>
  800.        If you have two disk drives insert the formated blank disk from 
  801.        step 1 in drive B. Otherwise swap disks as prompted on the screen.
  802.        When the copy is finished place your DOS disk in drive A: and type...
  803.        copy a:basica.com b: <ENTER>   Use the same formatted disk for the 
  804.        destination or B: disk.
  805.  
  806. 3.      Be sure that the copy was successful. Place your master COPY in
  807.        drive A: and type... a: <ENTER>    At the A> prompt type...
  808.        del loan*.* <ENTER>
  809.        The master COPY now in drive A: is your working copy. To get started
  810.        type ... tsc <ENTER>   for color or... tsm <ENTER> for monochrome.
  811.  
  812. 4.      Instructions will appear telling you how to register your copy of 
  813.        T-SCREEN. Follow the instructions as shown.
  814.  
  815.  
  816. That's all there is to it. If you have a hard disk you may create a 
  817. sub-directory as described in your DOS manual and copy all of the files 
  818. from your master COPY into that sub-directory.
  819.  
  820.                        OTHER THINGS YOU MIGHT WANT TO DO
  821.  
  822. 1. Try out the Pascal version of the amortization program. Insert the formatted
  823.    disk that now contains all of the loan files and type... loan <ENTER>
  824.  
  825. 2. To get a listing of the source code type... type loan.pas >prn <ENTER>
  826.    Be sure your printer is ready to go!
  827.  
  828. 1. Try out the BASIC version of the amortization program. Insert the formatted
  829.    disk that now contains all of the loan files and type... basica loan <ENTER>
  830.  
  831. 2. To get a listing of the BASIC source code type... basica <ENTER>
  832.    At the BASIC ready prompt type... load "loan.bas" <ENTER>
  833.    At the BASIC ready prompt type... llist <ENTER>
  834.  
  835.  
  836. T-SCREEN has lots and lots of help screens. Also if you are in doubt as to
  837. what the alternatives are at any point in the program, the bottom three lines 
  838. of the screen will let you know what commands and functions are available.
  839.  
  840.  
  841. HAPPY SCREEN MAKING...   
  842.  
  843.