Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!ora!bloom-beacon!dont-send-mail-to-path-lines From: yhuang@nile.ics.hawaii.EDU (Ye Huang) Newsgroups: comp.windows.x Subject: POPUP menu issue continue ... Message-ID: <9106261852.AA04153@nile.ics.hawaii.edu> Date: 27 Jun 91 00:52:26 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 42 Hello, David Thanks for your replies. The first problem solved for poping up the menu. The second one remains for which I could not popup different menus by depressing different buttons(Button1, Button2, and Button3). I only can get one by btn3. As I outlined I used the PostPopupMenu() for button events within the drawarea to switch to the corresponding XtManageChild(PopupMenu?) like : PopUpMenu() { switch(event->button) { case Button3: PostMenu3; break; case Button2: PostMenu2; break; case Button1: PostMenu1; break; default: printf("Not available \n"); } } It seems not the reason that .mwmrc has the conflict button binding as those are for root window. Also, in it there is binding for button3down. So, that is seemingly not the cause. I narrowed down the problem now futher. I put the printf in the case button2, and it is printed. So that shows the button2 event is trapped, but not posted. Another thing I do not understand is that when I switch the popup3 to 1, that is no longer been poped up. but again the print message is shown. SO ONLY BUTTON3 is working. I think you may be right someway. How you would do if you are to realize the same functions? Any suggestions? I am going to try the translation table to do it now. But I thought my original way is reasonable. Thanks. If you have any idea, plz do let me know! -- Thomas One