home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PASCAL / MADTRB35.ZIP / TSCREEN.DOC < prev    next >
Encoding:
Text File  |  1986-02-09  |  38.0 KB  |  851 lines

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