Article View: comp.sys.mac
Article #23981Pre-4.1 popup menus
From: Oliver Steele
Date: Sat, 23 Jan 1988 18:38
Date: Sat, 23 Jan 1988 18:38
23 lines
1695 bytes
1695 bytes
I have a progam that uses popup menus, and I'd like to be able to run it
on older Systems (circa 3.2). I've written a fake PopupMenuSelect() which
sometimes works fine, but sometimes the menu will be drawn with the wrong
item initially hilighted (items 1 and 2 will be inverted, with the mouse
over item 1, and when you move the mouse to item 2 then neither is
inverted), and sometimes the menu items will be scrolled off the menu so
that it looks like this, \v/
-------------- ----------
| <up arrow> | | item 1 |
| item 1 | | item 2 |
-------------- ----------
although they all fit once you scroll them back on: ^ .
I've tried setting TopMenuItem and AtMenuBottom to -1, since this seems
to be what the Menu Manager does, but this doesn't do the trick. Does
anyone know what I'm doing wrong, or has anyone gotten this to work?
----------------------------------------------------------------------------
Oliver Steele ...!{decvax,ihnp4}!mcnc!unc!steele
steele@cs.unc.edu
"What is L-marked? Theta-marked. I mean, the mind
boggles at the idea of a VP being theta-marked!" -- Gary Hendrick
Technical Details
Message-ID:
<838@thorin.cs.unc.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!ptsfa!ames!think!bloom-beacon!gatech!mcnc!thorin!unc!steeleReferences:
<1514@phoenix.Princeton.EDU> <7249@apple.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!ptsfa!ames!think!bloom-beacon!gatech!mcnc!thorin!unc!steele From: steele@unc.cs.unc.edu (Oliver Steele) Newsgroups: comp.sys.mac Subject: Pre-4.1 popup menus Summary: How do I fake popup menus? Message-ID: <838@thorin.cs.unc.edu> Date: 23 Jan 88 18:38:43 GMT References: <1514@phoenix.Princeton.EDU> <7249@apple.UUCP> Sender: news@thorin.cs.unc.edu Reply-To: steele@unc.UUCP (Oliver Steele) Organization: University Of North Carolina, Chapel Hill Lines: 23