Select another gui tab using c++ [SOLVED]
-
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
-
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).
-
On 16/02/2016 at 01:00, xxxxxxxx wrote:
Yes, it works!
Thanks, Pim