Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    how can I make popup like snap popup

    Cinema 4D SDK
    2
    6
    803
    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.
    • L
      Ling
      last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        Hi @Ling, the snap popup is a built-in menu, so you can't easily reproduce it however it's possible to build such a kind of menu but not with ShowPopupDialog.

        If you want all features you mentioned you will need to create a CommanData plugin (registered with the c4d.PLUGINFLAG_COMMAND_STICKY flags).
        Then a c4d.gui.GeDialog opened with the flags DLG_TYPE_ASYNC_POPUPEDIT to have a popup like dialog. To have the ability to dock it, you should use GeDialog.AddGadget with the c4d.DIALOG_PIN flags.
        Finally to build the menu, you will need to draw it manually with a GeUserArea.

        If you want more detail, please let met know,
        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        L 1 Reply Last reply Reply Quote 0
        • L
          Ling @m_adam
          last edited by

          @m_adam thanks, i would have a try

          1 Reply Last reply Reply Quote 0
          • M
            m_adam
            last edited by

            Hi I did try using the PLUGINFLAG_COMMAND_STICKY Unfortually this does not work as expected, I would need to dig a bit into it to see if there is any workaround to it. I will let you know.

            Cheers,
            Maxime

            MAXON SDK Specialist

            Development Blog, MAXON Registered Developer

            L 1 Reply Last reply Reply Quote 0
            • L
              Ling
              last edited by Ling

              @m_adam is it possible to add a gadget like the top controller of a palette ?but not a window gadget like object manager window on the right-top corner.
              think you very much!

              1 Reply Last reply Reply Quote 0
              • L
                Ling @m_adam
                last edited by

                @m_adam I know the PLUGINFLAG_COMMAND_STICKY, but i do not know how can I judge the key down and key up in execute() called back function of the command data. Do you know a way to do this?
                Thanks!

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