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

    Treeview and Right Click

    Cinema 4D SDK
    python r20
    2
    3
    404
    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.
    • P
      pim
      last edited by

      I implemented a treeview and it is working ok.
      Now I want to add the right click function.
      Right click opens a context menu, so I need to add my own menu item to the context menu. That is working too.

      Except I do not know how to remove the the default context menu items (Remove and Remove All).

      I read this in the manual.
      54ebc76e-df67-410e-aa28-f9cf8da273c4-image.png

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

        Since it is a BaseContainer you simply remove them via RemoveData()

        1 Reply Last reply Reply Quote 1
        • P
          pim
          last edited by

          @mp5gosu said in Treeview and Right Click:

          RemoveData()

          Great, thanks.

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