GeDialog Popup Menu

On 14/12/2015 at 16:09, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   16 
Platform:    Mac  ;  
Language(s) :     C++  ;

Hello, I've been working on a GeDialog plugin and I wanted to have a custom popup menu with ShowPopupMenu().  When clicking a button it seems easy to do with just calling ShowPopupMenu() in Command().

I want to have a popup menu open when I right click on a button as a method to offer more options but whenever I right click anywhere in the dialog this popup menu opens, (I'm not sure it's name).

Is there a way to disable this and instead have my own popup menu open?

Thanks for any possible help!

On 14/12/2015 at 19:46, xxxxxxxx wrote:

I'm not sure if there is an easy way, the only way that comes to my mind is:
create a GeUserArea, attach it to the dialog, catch right clicks inside the GeUserArea and show any popup that you want.

On 15/12/2015 at 07:04, xxxxxxxx wrote:

Hi Dan,

There's no way to prevent the default popup menu for dialogs on right click.
The CUSTOMGUI CYCLEBUTTON does show several options for one button but unfortunately it can only be used in descriptions.

A solution would be to have a small button with an arrow before the action button.
This small button then would show the action options on left click.
I think this solution would be fairly simple to implement.