Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!icdoc!qmw-cs!jeremyr From: jeremyr@cs.qmw.ac.uk (Jeremy Roussak) Newsgroups: comp.sys.mac.programmer Subject: Re: How do you make the little 'down'-arrows in pop-up menu boxes? Message-ID: <3708@sequent.cs.qmw.ac.uk> Date: 22 May 91 09:05:21 GMT References: <0E010021.sv4hwa@gla-aux.uucp> Organization: Computer Science Dept, QMW, University of London, UK. Lines: 22 In <0E010021.sv4hwa@gla-aux.uucp> glenn@gla-aux.uucp (Glenn Austin) writes: >> I understand that the user interface guidelines for pop-up menus have >> been revised. Originally, the menu box simply had a 2 pixel 'shadow'; >> now, it is supposed to have a little arrow that points down to the >> right of the text in the menu box. >> >> So how is this little arrow generated? I suppose it wouldn't be too >> hard to draw it by brute force (by calling the appropriate QuickDraw >> routines), but this involves the hassle of calculating the string >> length, etc. Is there some easier way to generate the arrow? >The simple answer is -- use the built-in popup control definition! It makes >life simpler, and makes it easier if Apple decides to change the user interface >of popups in the future. Unfortunately, it won't work if the popup CDEF isn't there - under system 6, for example. I use a little PICT of the arrow and draw it at the right-hand end of the menu's shadowed box. Not perfect, I admit. Jeremy Roussak