Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    GeDialog Popup Menu

    SDK Help
    0
    3
    358
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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!
      Dan

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post