home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PASCAL / PASMOUSE.ZIP / READ.ME next >
Encoding:
Text File  |  1987-09-08  |  10.4 KB  |  237 lines

  1. *************REQUIRED FILES*********************************
  2.  
  3. The following files should be in this archive file;
  4.  
  5.            READ.ME -- This file
  6.            TURBO.DEF -- Source File for making the mouse menu
  7.            TURBO.MNU -- Compiled version of TURBO.DEF
  8.  
  9. *************START UP PROCEDURE FOR TURBO.DEF***************
  10. You must have the Microsoft Programers Reference Guide and software to
  11. be able to use the TURBO.DEF source file with your mouse.
  12.  
  13. First, make sure the file is free of any garbage characters that may have
  14. been added during transmission over a modem and make sure the name is
  15. TURBO.DEF.  Place this file and MAKEMENU.COM on the same disk.
  16.  
  17. Run the make menu program as follows:
  18.  
  19. MAKEMENU TURBO
  20.  
  21. This program will read the .DEF file and write a new file called
  22. TURBO.MNU.  If you do not wish to make any changes to the way I have
  23. structured this program you can skip this step and use the compiled
  24. version that came with this file.  In either case place the TURBO.MNU
  25. file and MENU.COM on the same disk or directory as the Turbo Pascal
  26. files.
  27.  
  28. Now before calling up TURBO type the following:
  29.  
  30. MOUSE  (To install the mouse driver, if it is not already installed)
  31. MENU TURBO (To install the menu program)
  32.  
  33. ********************BACKGROUND ON THE MOUSE PROGRAMING********************
  34.  
  35. Pressing both buttons always generates a pop up menu. The program checks
  36. to see if the main Turbo Pascal screen is being displayed. If it is, a
  37. menu displays allowing you to choose some of the options. When any pop up
  38. menu is present, simply move the mouse to highlight your choice and press
  39. either key. You will probably note that not all of the main screen options
  40. are shown on the Main pop window. I chose not to display the Work file,
  41. Main file and compiler Options. These particular items require extensive
  42. keyboard input anyway so the advantage of first selecting them from the
  43. mouse was minimal.
  44.  
  45. To get good utilization from this program you MUST use the mouse to go
  46. from the main screen to the editor and vice versa. Originally I set the
  47. mouse up so that mouse movement always simulated the arrow keys and the
  48. left and right buttons simulated the PgDn & PgUp keys, respectively. This
  49. IS the way it works while in the editor. The problem was with Turbo
  50. Pascal. When the main screen is displayed pressing the PgUp key causes the
  51. screen to flicker a bit. PgDn causes the program to abort and return to
  52. the DOS prompt. The arrow keys cause letters to appear on the screen. At
  53. first I thought it was a problem with the mouse driver but it turned out
  54. to be a peculiarity of Turbo Pascal. As a consequence I have disabled all
  55. of these inputs when the program first starts except for pushing both
  56. buttons . When you enter the editor using the mouse, the program redefines
  57. the buttons and movement to the above configuration. When you exit the
  58. editor using the mouse, the individual buttons and movements are once
  59. again disabled.
  60.  
  61. If you press both buttons while in the editor mode the Editor menu pops
  62. up to show you the possible choices for exiting the editor and most of the
  63. block commands. I intentionally left the commands for moving the cursor
  64. left or right one letter, left or right one word and to the beginning or
  65. end of lines off this list. The mouse makes these movements so easy that
  66. these commands are not needed.
  67.  
  68. NOTE: The mouse program decides which pop up menu to display by checking
  69. to see if certain words on the Turbo Pascal main menu are located at the
  70. correct position on the screen. Occasionally, this screen will be scrolled
  71. up by some of the options, such as a long directory listing, compiler
  72. options, etc. If this happens the Editor pop menu will be displayed when
  73. both button are pushed instead of the main menu. Just select the Carriage
  74. Return option from the Editor menu to clear the screen and recall the
  75. Turbo Pascal main screen.
  76.  
  77. *************USING THE MOUSE ON THE MAIN TURBO PASCAL SCREEN*************
  78.  
  79. The only command the mouse will respond to while on the main screen is
  80. the pressing of both buttons.  Please remember the above restrictions
  81. about how the program may occasionally give you the Editor Menu rather
  82. than the Command Menu. Once you get use to using the mouse, its operation
  83. will become second nature to you. Any difficulties you experience at first
  84. will soon disappear.
  85.  
  86. The menu consists of the following commands:
  87.  
  88.            Cancel Menu
  89.            Carriage Ret.
  90.            Editor
  91.            Compile
  92.            Run
  93.            Save
  94.            Directory
  95.            Logged Drive
  96.            eXecute
  97.            Quit
  98.  
  99. Cancel Menu - This simply closes the menu window with no action if you
  100. accidentally press both buttons.
  101.  
  102. Carriage Ret. - This simulates pressing the Carriage Return or Enter key.
  103. Used to clear the screen and recall the main Turbo Pascal menu.
  104.  
  105. Editor - This command causes the program to enter the Editor mode and
  106. redefines the mouse movement and buttons. REMEMBER to use this to enter
  107. the editor rather than the key input so that the mouse will be
  108. reconfigured!
  109.  
  110. Compile, Run & Save - These commands operate exactly as they always do in
  111. Turbo Pascal.
  112.  
  113. Directory - Choosing this option will automatically recall the default
  114. directory and display all files with a .PAS extender.
  115.  
  116. Logged Drive - This option calls us another pop up menu that displays the
  117. letters from A to D.  Highlight the drive letter you want and press either
  118. mouse button.  The new drive will be selected, the screen will clear and
  119. the main menu will be redisplayed.
  120.  
  121. eXecute - This is an option that not every one can use.  There is an
  122. excellent public domain program available from many bulletin boards
  123. called INSTX2.  This program will alter the standard Turbo Pascal code to
  124. allow you to customize screen colors and add a DOS shell as well as other
  125. items.  If you modify your program in this way, this option will allow
  126. you to exit to DOS temporarily.  If your program is not modified, please
  127. delete the areas marked in the .DEF file and compile a new .MNU file.
  128.  
  129. Quit - This allows you to exit Turbo Pascal. A pop up window will display
  130. to ask you if you REALLY want to leave the program. This is something that
  131. Turbo Pascal does not do and I have always considered it a weakness in the
  132. program. If you choose No the window will disappear and nothing will
  133. happen. Choosing Yes will stop the program. If Turbo Pascal prompts you
  134. about whether or not to save a modified file just press both buttons once
  135. again and another pop window will appear. This window will allow you to
  136. choose Yes or No to this question.
  137.  
  138. *************USING THE MOUSE ON THE TURBO PASCAL EDITOR SCREEN***********
  139.  
  140. While in the editor mode moving the mouse will move the cursor just as
  141. though you were pressing the cursor keys.  Pressing the left button will
  142. let you Page Down (PgDn) through your code and the right button will
  143. allow you to Page Up (PgUp).  It is exceptionally nice to be able to sit
  144. back a bit and watch the code when I am trying to find a particular
  145. section.
  146.  
  147. EDITOR MENU
  148.  
  149. If you are at all like me you have to slave to remember the archaic
  150. WordStar commands necessary to edit programing.  The Editor menu was
  151. created to relieve me of this chore.
  152.  
  153. The menu consist of the following commands:
  154.  
  155.            Cancel Menu
  156.            Carriage Return
  157.            Exit Editor
  158.            Mark beg. of Block
  159.            Mark end of Block
  160.            Copy Block
  161.            Move Block
  162.            Delete Block
  163.            Top of File
  164.            End of File
  165.            Find Word
  166.            Find & Replace
  167.            Repeat Last Find
  168.  
  169. Cancel Menu - This simply closes the menu window with no action if you
  170. accidentally press both buttons.
  171.  
  172. Carriage Ret. - This simulates pressing the Carriage Return or Enter key.
  173.  
  174. Exit Editor - This causes the program to return to the main Turbo Pascal
  175. screen plus it redefines the mouse movement and individual button
  176. commands. REMEMBER to use this to get back to the main screen so that the
  177. mouse will be redefined!
  178.  
  179. Each of the following command lines just recalls the appropriate CTRL-K
  180. or CTRL-Q command for you. Turbo Pascal will prompt you as it always has
  181. in the past.
  182.  
  183. Mark beg. of Block, Mark end of Block - Position the cursor where you
  184. want a block to start or end then choose the appropriate item.
  185.  
  186. Copy Block, Move Block - After marking a block of your source code,
  187. position the cursor where you wish the block copied or moved to then
  188. choose the appropriate command.
  189.  
  190. Delete Block - This will delete a block of your source code that you have
  191. previously marked.
  192.  
  193. Top of File, End of File - This will jump your cursor to the beginning or
  194. end of your text.
  195.  
  196. Find Word, Find & Replace, Repeat Last Find - Turbo Pascal will prompt
  197. you as required.  Refer to the Borland manual to determine the correct
  198. options.
  199.  
  200. *******************HINTS FOR USING THE MOUSE.COM DRIVER******************
  201.  
  202. You do not have to use the Control Panel (CPANEL.COM) to adjust the
  203. sensitivity levels unless you often change these level depending on the
  204. use you have for the mouse. When you invoke CPANEL.COM memory space is set
  205. aside for the overlay file. The amount of space depends on the display
  206. adapter you use and the complexity of the Control Panel overlay image. You
  207. can save this memory space by using the mouse command line switches.
  208.  
  209.      The switches are:
  210.  
  211.      /S<nnn)  To set both horizontal and vertical sensitivities
  212.      /H<nnn>  To set horizontal sensitivity separately
  213.      /V<nnn>  To set vertical sensitivity separately
  214.      /D<nnn>  To set the double speed threshold.
  215.  
  216.      where <nnn> is a number between 0 and 100.  This
  217.      corresponds to the number set with the control panel.
  218.  
  219.      The command switches are entered on the same line after
  220.      MOUSE.  If you enter one or more switches there must be a
  221.      space after MOUSE and after each switch.
  222.  
  223.           MOUSE /S30 or
  224.           MOUSE /S30 /D10
  225.  
  226. I like the sensitivity set to 30. It makes a good ratio between mouse
  227. movement and the resulting cursor movement.  The sensitivities specified
  228. in the definition file work well with this overall sensitivity.  If you
  229. use another setting the sensitivites should be adjusted to your liking.
  230.  
  231. Setting the double speed threshold makes the cursor speed up if the mouse
  232. is moved rapidly. Very nice for reaching widely-separated portions of your
  233. text. Setting the double speed threshold to 10 again seems to be a good
  234. compromise setting.
  235.  
  236. I hope you enjoy this program.  Good Luck!
  237.