THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/04/2012 at 11:49, xxxxxxxx wrote:
Cinema 4D Version: 12
Platform: Windows ;
Language(s) : C++ ;
Can someone please show me a very basic example how to create multiple tabs for tag plugins?
I have several questions about it:
- Do I have to use GetDDescription() to make it work?
- Can I use only the .res file formatting alone, and nothing else to pull this off?
- Do I have to put each tab items in their own .h, .res and .str files?
I just want to be able to group my GUI's into their own tabs. Nothing fancy or animated.
I can do this easily with UserData by adding new groups. But I can't figure out how to do the same thing with plugins.
On 24/04/2012 at 12:21, xxxxxxxx wrote:
You can achieve this by using the .res, .h, and .str files.
ID_MY_TAB = 1000;
ID_MY_TAB2 = 1002;
ID_MY_TAB = "Tab1";
ID_MY_TAB2 = "Tab2";
You do not have to use GetDDescription for this. Although you can achieve that there if you want tabs to appear dynamically.
You can do this all in the same .h .res .str file.
Hope that helps.
On 24/04/2012 at 12:22, xxxxxxxx wrote:
As Shawn says!
On 24/04/2012 at 13:07, xxxxxxxx wrote:
On 25/04/2012 at 08:14, xxxxxxxx wrote:
Follow up question.
I have everything set up and working. And I've played around with hiding the the Tabs using the GetDDenabling() method. And all is working fine.
But one thing I can't find in the SDK is how to make all the tabs(groups) selected by default when the tag is first added to the object.
How do I make a tab/s selected by default?
On 25/04/2012 at 08:40, xxxxxxxx wrote:
On 25/04/2012 at 09:02, xxxxxxxx wrote:
On 25/04/2012 at 09:26, xxxxxxxx wrote:
DEFAULT 0; Would be inactive.. although this is the default so it's not really necessary.