Path: utzoo!news-server.csri.toronto.edu!rutgers!mcnc!uvaarpa!murdoch!cds001.cebaf.gov!quarrie From: quarrie@cds001.cebaf.gov (David Quarrie) Newsgroups: comp.sys.next Subject: Popup Menus Message-ID: <1991Mar11.142121.25781@murdoch.acc.Virginia.EDU> Date: 11 Mar 91 14:21:21 GMT Sender: usenet@murdoch.acc.Virginia.EDU Reply-To: quarrie@cds001.cebaf.gov (David Quarrie) Organization: CEBAF (Continuous Electron Beam Accelerator Facility) Lines: 31 -- This is a plea for help. I'm in the midst of porting some software that uses popup menus extensively. I'd like these menus to have the semantics of the "rightMouse" Application menu - i.e. on mouseDown the menu pops up at the cursor location, the user then drags the mouse to the required menu item and then releasing the mouse button both selects the item and hides the menu again. I have no difficulty creating Menu objects with items (and submenus etc.) and causing them to appear at the cursor location: [menu MoveTo:x :y]; [menu makeKeyAndOrderFront]; However, I've not been able to reproduce the semantics I want. The menu remains visible until explicitly closed by the Application via: [menu close]; I've tried using [menu rightMouseDown:&event]; and that appears to ignore the "menu" id it is given but only pops up the main application menu (it also doesn't appear to track properly, but that's probably finger problems on my part). Failing this, I've tried to make my menu appear with the close box visible (by setting some of the menuFlags) but that doesn't appear to do anything either. Any (constructive!) suggestions would be welcome (I know what I'm trying to do violates the NeXT interface guidelines, but I'm trying to compromise between those and what this software is built around). David Quarrie CEBAF Physics Division quarrie@cds001.cebaf.gov