Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!ihnp4!chinet!steinmetz!jesup From: jesup@steinmetz.UUCP Newsgroups: comp.sys.amiga Subject: Re: Getting right mouse button signals from Intuition Message-ID: <1093@steinmetz.steinmetz.UUCP> Date: Fri, 16-Jan-87 14:53:14 EST Article-I.D.: steinmet.1093 Posted: Fri Jan 16 14:53:14 1987 Date-Received: Mon, 19-Jan-87 01:36:17 EST References: <838@laidbak.UUCP> Reply-To: jesup@kbsvax.UUCP (Randell Jesup) Organization: General Electric CRD, Schenectady, NY Lines: 20 Summary: use RMBTRAP In article <838@laidbak.UUCP> miker@laidbak.UUCP (Mike Roth) writes: >My problem is that when I hit the right mouse button, The screen title >bar changes. I currently have MOUSEBUTTONS set as an IDCMP flag for >the window and get the SELECTUP and SELECTDOWN messages, but not the >MENUUP and MENUDOWN messages. I don't use or need the menu facility >of Intuition. My big question is: > >How do you make Intuition send messages for MENUUP and MENUDOWN? The solution is to use RMBTRAP. This will allow you to get messages for the right mouse button as well as the left. The thing to be careful for is to remove the RMBTRAP when the mouse moves onto the menu bar. This allows the menus to be obtained when the mouse is on the menu bar. This trick is used in DPAINT and Egad, to name a few. Normally, you never see anything from the right mouse button, as Intuition eats it. One other possibilty is to only enable RMBTRAP when the mouse is over one of these items. Randell Jesup jesup@steinmetz.uucp (seismo!rochester!steinmetz!jesup) jesup@ge-crd.arpa