I'm trying to allow the user to right-click to start a pop-up menu. The key is the %tx coordinates of the right-click are important for the right-click. If I allow the standard processing of the pop-up menu, I can't get the %tx coordinates.
If I disable pop-up menu (NO_POPUP_MENU), but still define the %pm for the window, and handle the right click myself by using DISPLAY_POPUP_MENU@() when the right click is processed, I can get the %tx coordinates, the mouse coordinates, but not the pop-up item selected CLEARWIN_STRING@('CURRENT_MENU_ITEM'). The callback function for the %pm in this case never gets called.
Am I asking too much? Or, is there a different way to get the information needed?