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

    Select another gui tab using c++ [SOLVED]

    SDK Help
    0
    3
    307
    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 15/02/2016 at 12:27, xxxxxxxx wrote:

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

      ---------
      I have a dialog with 2 tabs.
      Now I want to go from one tab to another based on user input.
      E.g. the user selects a value in one tab and based on that selection I want to display the other tab.

      I thought I could you use SetActiveTabPage(ID_TAB1);
      But then I get a message: identifier SetActiveTabPage is undefined.
      I included #include "customgui_description.h"

      Perhaps I can send a message (which message?) simulating that the tab is selected?

      - Pim

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

        On 15/02/2016 at 13:04, xxxxxxxx wrote:

        Can't find where I have done this myself in the past so don't quote me on this, but I think that if you have a group that 'groups' the tabs (a TabGroup such as MYTABSGROUP), you can simply use SetLong(MYTABSGROUP, TABGROUP1) where TABGROUP1 is the enum for the first tab, and so forth.

        SetActiveTabPage() is specifically for DescriptionCustomGui's (remember that the Description and Dialog GUIs are different for the most part).

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

          On 16/02/2016 at 01:00, xxxxxxxx wrote:

          Yes, it works!
          Thanks, Pim

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