Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!samsung!munnari.oz.au!murtoa.cs.mu.oz.au!rob From: rob@cs.mu.oz.au (Robert Wallen) Newsgroups: comp.sys.mac.programmer Subject: Re: Simulating a Menu Bar with Pop-Up Menus Message-ID: <2891@murtoa.cs.mu.oz.au> Date: 5 Dec 89 07:12:46 GMT References: <9095@hoptoad.uucp> <1989Nov28.053644.28100@agate.berkeley.edu> <2880@murtoa.cs.mu.oz.au> <1989Dec4.013339.20945@agate.berkeley.edu> Reply-To: rob@murtoa.UUCP (Robert Wallen) Organization: Comp Sci, Melbourne Uni, Australia Lines: 46 Recently lippin@math.berkeley.edu writes: >Recently rob@murtoa.UUCP (Robert Wallen) wrote: >> >>On a related issue. Has anyone worked out how to hack the PopUpMenuSelect so >>that it doesnt present the users with that stupid blank rectangle and the >>scroll arrow if it is too close to the edge of the screen. > >PopupMenuSelect, when used as directed, produces the correct result -- >it goes to some trouble to put the item you choose under the mouse, >and this can produce some funny looking scrolling menus if you're near >the edge of the screen. The correct result? So many times, I find that it scrolls the lot straight away because I was positioned on the arrow... >But when you're perverting PopupMenuSelect to serve other ends, the >way menus are positioned may not be appropriate. The best way I've I think I dislike the term 'perverting'. What is PopUpMenuSelect supposed to do if its not pop-up menus where the user clicks? Personally, I think this is one of the arguments that Apple used to convince the world that it didnt steal too liberally from Smalltalk -- Xerox seemed to handle popups properly regardless of where the mouse was clicked 8-) >found around this is to have the MDEF misinterpret the hPopUpMsg. For Once again, we come down to a custom MDEF. Apple DTS, are you reading this string? If I need a custom MDEF, seems to me that MDEF-0 must be broken... >my menu bar in a window, for example, I use this to bounce the menu >off the edge of the screen, so that it never has to scroll (given How do you mean? Do you miscalculate the rectangle requested? >sufficiently short menus, of course. LSC 4.0, on the other hand, >seems to use it to get the menu positioned properly underneath the >title bar of the window -- in extreme cases, making the menu too small >to use; Apple didn't (and had no reason to) provide for the >possibility of scrolling menus less than 3 items long. (BTW, I ^^^^^ Apple DTS -- please take note >haven't been able to reproduce David Phillip Oster's bus error when >trying this on my mac II, but perhaps I haven't tried hard enough.) Nor I on the SE/30...