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

    Quicktab deselection

    SDK Help
    0
    3
    355
    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 09/02/2017 at 04:15, xxxxxxxx wrote:

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

      ---------
      Hello,
      I have ObjectData based object with dynamic description very similar to the one in official example project. One of elements in description is LONG_QUICKTAB.

      Item selection works as expected but in some cases I'd like to deselect all items in it (from code). I tried to set parameter to -1 but it does nothing. Removing parameter looks wrong and selects always first item anyway.

      Is there something I can use to deselect all items in it?  (the control surely supports that since if it is used in GeDialog function QuickTabCustomGui::Select can do it).

      Thank you.

      PS: if you need example - in official example project, file objectdata_descriptions.cpp, function ObjectDynamicDescription::SetParameter. If it works there it will work in my project too.

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

        On 10/02/2017 at 08:33, xxxxxxxx wrote:

        Hi Miro,

        unfortunately that's not possible. The "LONG_QUICKTAB", actually ID_QUICKTABSRADIO_GADGET CustomGUI, used in the objectdata_descriptions.cpp is a special widget for Long/Int parameters and always has one tab selected. It's not possible to deselect all tabs, the parameter only accepts values of existing tabs.
        The QuickTabCustomGui shown in the gedialog_gadgets.cpp example is a different widget.

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

          On 12/02/2017 at 23:03, xxxxxxxx wrote:

          I see, thank you anyway.
          I'll use some workaround like extra value 'Custom' or something like that if other values don't fit.

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