Maxon Developers
    • Downloads
      • All Downloads
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
      • Cinema 4D Python Examples
      • Cinema 4D C++ Examples
      • Project Tool
      • SDK Database
    • Documentation
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
    • Forum
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Forums
      • Overview
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • News & Information
      • Downloads
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    PopupMenu - general usage?

    SDK Help
    0
    3
    44
    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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 16/10/2005 at 03:18, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   9.1 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Now that I have designed my popup menu, I realized I don't know how to check when a user a clicked on a popupmenu item.

      In a GeUserArea::InputEvent I am using the ShowPopupMenu function to display a popup menu

        
      ShowPopupMenu(NULL, MOUSEPOS, MOUSEPOS, bc, POPUP_BELOW|POPUP_EXECUTECOMMANDS);  
      

      But how do I check which menu entry was clicked?
      A GeUserArea does't have a Command() method (like the GeDialog does).

      I have tried checking in GeUserArea::Message and GeUserArea::CoreMessage for some kind of message telling me which menu has been clicked, but I can't seem to find anythinf relating to menus

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 16/10/2005 at 03:49, xxxxxxxx wrote:

        Check the return value. ("The ID of the selected item, or NULL if nothing was selected.")

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 16/10/2005 at 04:55, xxxxxxxx wrote:

          Thanks,

          I feel silly, didn't notice that the menu returns the id sigh

          Thanks

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