Thank you for the answer René
We use the ribbon menu for several purposes, launching functions, managing favorites and triggering actions. Our ERP has hundreds of functions, my problem is to allow the user to add the most used functions in a favorites menu.
It is indeed a popup menu that I would like to display via the "popmenu" function of PB but the "clicked" event is already currently used to launch the function associated with the ribbon menu button (open the customer order entry window for example ) ...
I would like to be able to detect the right click to open the popup menu and for example allow the customer order entry function to be added to the user's shortcuts menu. I can't use the "clicked" event for 2 uses.
I have the impression that we can only define the call of 2 events from the ribbon menu buttons (clicked and selected)...