Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!nrl-cmf!ames!pasteur!ucbvax!husc6!endor!siegel
From: siegel@endor.harvard.edu (Rich Siegel)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Strange Behavior (Bug??) in PopUpMenuSelect
Keywords: PopUpMenuSelect
Message-ID: <763@husc6.harvard.edu>
Date: 5 Dec 88 12:44:05 GMT
References: <8008@ut-emx.UUCP> <21657@apple.Apple.COM>
Sender: news@husc6.harvard.edu
Reply-To: siegel@endor.UUCP (Rich Siegel)
Organization: Symantec/THINK Technologies, Bedford, MA
Lines: 27

In article <21657@apple.Apple.COM> tecot@Apple.COM (Ed Tecot) writes:

>It's not a bug, it's not even a feature.  It's the way it has to work.

	I beg to differ. LightspeedC and Lightspeed Pascal make use of a 
little MDEF that sits on top of the standard MDEF and handles the popup
message. The patch MDEF works in combination with a stub for PopUpMenuSelect;
the stub set's the Window Manager port's value to a big number, calls the
patch MDEF's CalcMenuSize, and restores the window manager port's portRect.
The patch MDEF checks to see where the top and bottom of the menu rectangle
are, compared to the height of the menu, and adjusts the menu's menuRect
so that there's no whitespace on either end.

		--Rich




Rich Siegel
Staff Software Developer
THINK Technologies Division, Symantec Corp.
Internet: siegel@endor.harvard.edu
UUCP: ..harvard!endor!siegel
Phone: (617) 275-4800 x305

Any opinions stated in this article do not necessarily reflect the views
or policies of Symantec Corporation or its employees.