jack@cs.hw.ac.uk (Jack Campin) (01/30/88)
I have some students who will probably need to use some nonstandard (for the Mac, that is) interactive techniques like popup menus, cursors that don't track the mouse, and the like. I vaguely remember seeing something called TrackPopUp which I think was a library of routines that could be bound into a Pascal program. (This project will be done in Lightspeed Pascal - not my idea, but things that don't fit that environment are out). Anybody got stuff like this? I don't want them reinventing wheels. No flames about the Apple user interface guidelines, please. There are several good reasons for ignoring them here. -- ARPA: jack%cs.glasgow.ac.uk@nss.cs.ucl.ac.uk JANET:jack@uk.ac.glasgow.cs USENET: ...mcvax!ukc!cs.glasgow.ac.uk!jack Mail: Jack Campin, Computing Science Department, University of Glasgow, 17 Lilybank Gardens, Glasgow G12 8QQ, Scotland (041 339 8855 x 6045)
omh@nancy (Owen M. Hartnett) (02/07/88)
PopUp Menus are implemented in the current System files. You'll need the newest release of LSP so that you can call the routine. The routine to call is: function PopUpMenuSelect(theMenu:menuHandle; top,left:integer; item:integer):longint; Simply get the Menu first, don't install in menubar, in the above call you'll pass it it's menuHandle, top and left are the coordinates of the upper left corner of the menu, item is the item number that should start out selected. If you haven't got the latest LSP update, you can use an inline and define the above function as trap $A80B. Disconnecting the mouse from the cursor is something Apple hates to see with a passion, so there isn't any support for it. Owen Hartnett Brown University Computer Science omh@cs.brown.edu.CSNET omh%cs.brown.edu {ihnp4,allegra}!brunix!omh "Don't wait up for me tonight because I won't be home for a month." -W.C. Fields