Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!sei.cmu.edu!fs7.ece.cmu.edu!o.gp.cs.cmu.edu!andrew.cmu.edu!+ From: Christian.Molick@cs.cmu.edu Newsgroups: comp.windows.x.motif Subject: trapping Btn3Down on menued widget? Message-ID: Date: 6 Mar 91 20:04:37 GMT Organization: Carnegie Mellon, Pittsburgh, PA Lines: 28 I want to trap button up and down events for all three buttons on a widget, but I don't ever receive Btn3Down events even though I uninstall and then override the translations of the widget well after it is created. The widget that I am dealing with is part of a toolkit whose class tree is rooted at core. The widget includes as part of its initialization the creation of a popup menu pane. I do not use this popup menu, as my needs are a bit different that the writers of the toolkit envisioned, yet Btn3Down in the widget causes the pointer to change from the left pointing arrow that I use in my application to a right pointing arrow indicative of Motif menu operation. No menu ever pops up, though, and I am able to trap Btn3Up events. Is there anyway to get rid of this unwanted Btn3Down trapping? I can't get hold of the popup menu to destroy it, because the widget keeps it internally as a private resource. I could rebuild the toolkit in such a way that the menu is never created, but that is something I would like to avoid if there is some other fix. I am also not absolutely positive that the weirdness that's going on is caused by this unused popup menu, though the cursor change on button3 makes me suspect. Thanks, ChristianM (molick@edrc.cmu.edu, @globe.cmu.edu, @cs.cmu.edu)