From rochester!rutgers!iuvax!franco Thu Jan 7 17:57:02 EST 1988 Article 6871 of comp.sys.atari.st: Relay-Version: version B 2.10.2 9/18/84; site ritcv.UUCP Path: ritcv!rochester!rutgers!iuvax!franco >From: franco@iuvax.cs.indiana.edu Newsgroups: comp.sys.atari.st Subject: Menu control for the ST Message-ID: <36500025@iuvax> Date: 3 Jan 88 22:25:00 GMT Date-Received: 4 Jan 88 02:23:51 GMT Organization: Indiana University CSCI, Bloomington Lines: 90 Nf-ID: #N:iuvax:36500025:000:4846 Nf-From: iuvax.cs.indiana.edu!franco Jan 3 17:25:00 1988 Here is a program that solves the problem of unwanted menu dropping when the mouse is accidentally moved to the menu bar. Put the program in the AUTO folder. After booting you should notice that you cannot move the mouse above the menu bar with any button released or with any button pressed starting from any point below the menu bar. However, if you move the mouse to the bottom of the menu bar with the left button released and then apply upward movement to the mouse while pressing the left button you will move the mouse into the menu bar (and drop a menu if one is right under the mouse position). From there two modes of operation are possible: for Atari mode release the left button - this gives menu control exactly as packaged by Atari. In Atari mode you can move the mouse all over the screen dropping menus all over the place until you click on a menu item (in which case the item is selected) or click off the menu (in which case the menu pops up with no action taken). For Mac mode keep the left button pressed then move the mouse down the menu of your choice until you find the desired item to selected - then release the button to select that item. If you release the button while the mouse is off the dropped menu then no action will be taken and the dropped menu will pop back up. The problems: Atari mode: I do not know of any Mac mode: Can be fooled in the following two ways: 1. Bring the mouse right up to the bottom of the menu bar. With the slightest upward movement possible, press the left button - when you see the menu bar drop, stop all mouse movement. Then, while continuing to hold down the left button, move the mouse sharply down. The result: the menu will pop back up and the first item will be selected. 2. Move the mouse to the menu bar with upward-movement-while-pressing but not over a menu position. When the mouse is moved over a menu the menu will not drop. To work in Mac mode (as I always do) and not let the problems above affect you, a) give a little extra upward movement while pressing the left button (actually it is hard to avoid doing this), and b) if a menu fails to drop, either use Atari mode or release then press the button for Mac mode. I will be grateful to the person that posts a program which solves these problems. Acknowledgement: This program is based on previous work by David Small and Brent McKim. John Franco Bloomington, IN franco@iuvax.cs.indiana.edu The code below was tested only using a monochrome monitor. However, I see no reason why it should not work using a color monitor. The code below was UUENCODED using the encoder that currently resides on our VAX.