Path: utzoo!utgpu!attcan!uunet!husc6!ukma!rutgers!apple!tecot From: tecot@Apple.COM (Ed Tecot) Newsgroups: comp.sys.mac.programmer Subject: Re: Strange Behavior (Bug??) in PopUpMenuSelect Keywords: PopUpMenuSelect Message-ID: <22465@apple.Apple.COM> Date: 19 Dec 88 03:07:15 GMT References: <8008@ut-emx.UUCP> <21657@apple.Apple.COM> <763@husc6.harvard.edu> Organization: Apple Computer Inc, Cupertino, CA Lines: 22 In article <763@husc6.harvard.edu> siegel@endor.UUCP (Rich Siegel) writes: >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. Then tell me, what happens when the menu is scrolled? Since you've truncated the menu height, you can no longer see the entire menu after it has been scrolled. In addition, in some cases, you might make the menu so small that no items are visible. I'd call that a bug. The MDEF must work this way or it could not ensure that the entire menu is visible and the desired item is under the cursor. _emt