home *** CD-ROM | disk | FTP | other *** search
- *************REQUIRED FILES*********************************
-
- The following files should be in this archive file;
-
- READ.ME -- This file
- TURBO.DEF -- Source File for making the mouse menu
- TURBO.MNU -- Compiled version of TURBO.DEF
-
- *************START UP PROCEDURE FOR TURBO.DEF***************
- You must have the Microsoft Programers Reference Guide and software to
- be able to use the TURBO.DEF source file with your mouse.
-
- First, make sure the file is free of any garbage characters that may have
- been added during transmission over a modem and make sure the name is
- TURBO.DEF. Place this file and MAKEMENU.COM on the same disk.
-
- Run the make menu program as follows:
-
- MAKEMENU TURBO
-
- This program will read the .DEF file and write a new file called
- TURBO.MNU. If you do not wish to make any changes to the way I have
- structured this program you can skip this step and use the compiled
- version that came with this file. In either case place the TURBO.MNU
- file and MENU.COM on the same disk or directory as the Turbo Pascal
- files.
-
- Now before calling up TURBO type the following:
-
- MOUSE (To install the mouse driver, if it is not already installed)
- MENU TURBO (To install the menu program)
-
- ********************BACKGROUND ON THE MOUSE PROGRAMING********************
-
- Pressing both buttons always generates a pop up menu. The program checks
- to see if the main Turbo Pascal screen is being displayed. If it is, a
- menu displays allowing you to choose some of the options. When any pop up
- menu is present, simply move the mouse to highlight your choice and press
- either key. You will probably note that not all of the main screen options
- are shown on the Main pop window. I chose not to display the Work file,
- Main file and compiler Options. These particular items require extensive
- keyboard input anyway so the advantage of first selecting them from the
- mouse was minimal.
-
- To get good utilization from this program you MUST use the mouse to go
- from the main screen to the editor and vice versa. Originally I set the
- mouse up so that mouse movement always simulated the arrow keys and the
- left and right buttons simulated the PgDn & PgUp keys, respectively. This
- IS the way it works while in the editor. The problem was with Turbo
- Pascal. When the main screen is displayed pressing the PgUp key causes the
- screen to flicker a bit. PgDn causes the program to abort and return to
- the DOS prompt. The arrow keys cause letters to appear on the screen. At
- first I thought it was a problem with the mouse driver but it turned out
- to be a peculiarity of Turbo Pascal. As a consequence I have disabled all
- of these inputs when the program first starts except for pushing both
- buttons . When you enter the editor using the mouse, the program redefines
- the buttons and movement to the above configuration. When you exit the
- editor using the mouse, the individual buttons and movements are once
- again disabled.
-
- If you press both buttons while in the editor mode the Editor menu pops
- up to show you the possible choices for exiting the editor and most of the
- block commands. I intentionally left the commands for moving the cursor
- left or right one letter, left or right one word and to the beginning or
- end of lines off this list. The mouse makes these movements so easy that
- these commands are not needed.
-
- NOTE: The mouse program decides which pop up menu to display by checking
- to see if certain words on the Turbo Pascal main menu are located at the
- correct position on the screen. Occasionally, this screen will be scrolled
- up by some of the options, such as a long directory listing, compiler
- options, etc. If this happens the Editor pop menu will be displayed when
- both button are pushed instead of the main menu. Just select the Carriage
- Return option from the Editor menu to clear the screen and recall the
- Turbo Pascal main screen.
-
- *************USING THE MOUSE ON THE MAIN TURBO PASCAL SCREEN*************
-
- The only command the mouse will respond to while on the main screen is
- the pressing of both buttons. Please remember the above restrictions
- about how the program may occasionally give you the Editor Menu rather
- than the Command Menu. Once you get use to using the mouse, its operation
- will become second nature to you. Any difficulties you experience at first
- will soon disappear.
-
- The menu consists of the following commands:
-
- Cancel Menu
- Carriage Ret.
- Editor
- Compile
- Run
- Save
- Directory
- Logged Drive
- eXecute
- Quit
-
- Cancel Menu - This simply closes the menu window with no action if you
- accidentally press both buttons.
-
- Carriage Ret. - This simulates pressing the Carriage Return or Enter key.
- Used to clear the screen and recall the main Turbo Pascal menu.
-
- Editor - This command causes the program to enter the Editor mode and
- redefines the mouse movement and buttons. REMEMBER to use this to enter
- the editor rather than the key input so that the mouse will be
- reconfigured!
-
- Compile, Run & Save - These commands operate exactly as they always do in
- Turbo Pascal.
-
- Directory - Choosing this option will automatically recall the default
- directory and display all files with a .PAS extender.
-
- Logged Drive - This option calls us another pop up menu that displays the
- letters from A to D. Highlight the drive letter you want and press either
- mouse button. The new drive will be selected, the screen will clear and
- the main menu will be redisplayed.
-
- eXecute - This is an option that not every one can use. There is an
- excellent public domain program available from many bulletin boards
- called INSTX2. This program will alter the standard Turbo Pascal code to
- allow you to customize screen colors and add a DOS shell as well as other
- items. If you modify your program in this way, this option will allow
- you to exit to DOS temporarily. If your program is not modified, please
- delete the areas marked in the .DEF file and compile a new .MNU file.
-
- Quit - This allows you to exit Turbo Pascal. A pop up window will display
- to ask you if you REALLY want to leave the program. This is something that
- Turbo Pascal does not do and I have always considered it a weakness in the
- program. If you choose No the window will disappear and nothing will
- happen. Choosing Yes will stop the program. If Turbo Pascal prompts you
- about whether or not to save a modified file just press both buttons once
- again and another pop window will appear. This window will allow you to
- choose Yes or No to this question.
-
- *************USING THE MOUSE ON THE TURBO PASCAL EDITOR SCREEN***********
-
- While in the editor mode moving the mouse will move the cursor just as
- though you were pressing the cursor keys. Pressing the left button will
- let you Page Down (PgDn) through your code and the right button will
- allow you to Page Up (PgUp). It is exceptionally nice to be able to sit
- back a bit and watch the code when I am trying to find a particular
- section.
-
- EDITOR MENU
-
- If you are at all like me you have to slave to remember the archaic
- WordStar commands necessary to edit programing. The Editor menu was
- created to relieve me of this chore.
-
- The menu consist of the following commands:
-
- Cancel Menu
- Carriage Return
- Exit Editor
- Mark beg. of Block
- Mark end of Block
- Copy Block
- Move Block
- Delete Block
- Top of File
- End of File
- Find Word
- Find & Replace
- Repeat Last Find
-
- Cancel Menu - This simply closes the menu window with no action if you
- accidentally press both buttons.
-
- Carriage Ret. - This simulates pressing the Carriage Return or Enter key.
-
- Exit Editor - This causes the program to return to the main Turbo Pascal
- screen plus it redefines the mouse movement and individual button
- commands. REMEMBER to use this to get back to the main screen so that the
- mouse will be redefined!
-
- Each of the following command lines just recalls the appropriate CTRL-K
- or CTRL-Q command for you. Turbo Pascal will prompt you as it always has
- in the past.
-
- Mark beg. of Block, Mark end of Block - Position the cursor where you
- want a block to start or end then choose the appropriate item.
-
- Copy Block, Move Block - After marking a block of your source code,
- position the cursor where you wish the block copied or moved to then
- choose the appropriate command.
-
- Delete Block - This will delete a block of your source code that you have
- previously marked.
-
- Top of File, End of File - This will jump your cursor to the beginning or
- end of your text.
-
- Find Word, Find & Replace, Repeat Last Find - Turbo Pascal will prompt
- you as required. Refer to the Borland manual to determine the correct
- options.
-
- *******************HINTS FOR USING THE MOUSE.COM DRIVER******************
-
- You do not have to use the Control Panel (CPANEL.COM) to adjust the
- sensitivity levels unless you often change these level depending on the
- use you have for the mouse. When you invoke CPANEL.COM memory space is set
- aside for the overlay file. The amount of space depends on the display
- adapter you use and the complexity of the Control Panel overlay image. You
- can save this memory space by using the mouse command line switches.
-
- The switches are:
-
- /S<nnn) To set both horizontal and vertical sensitivities
- /H<nnn> To set horizontal sensitivity separately
- /V<nnn> To set vertical sensitivity separately
- /D<nnn> To set the double speed threshold.
-
- where <nnn> is a number between 0 and 100. This
- corresponds to the number set with the control panel.
-
- The command switches are entered on the same line after
- MOUSE. If you enter one or more switches there must be a
- space after MOUSE and after each switch.
-
- MOUSE /S30 or
- MOUSE /S30 /D10
-
- I like the sensitivity set to 30. It makes a good ratio between mouse
- movement and the resulting cursor movement. The sensitivities specified
- in the definition file work well with this overall sensitivity. If you
- use another setting the sensitivites should be adjusted to your liking.
-
- Setting the double speed threshold makes the cursor speed up if the mouse
- is moved rapidly. Very nice for reaching widely-separated portions of your
- text. Setting the double speed threshold to 10 again seems to be a good
- compromise setting.
-
- I hope you enjoy this program. Good Luck!