Including description elements

On 07/06/2013 at 02:40, xxxxxxxx wrote:

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

---------
I have problems including descriptions when using inheritance.
This is the root class

CONTAINER Trootclass
{
	GROUP GROUP_ROOTCLASS
	{
		BUTTON BUTTON_ROOTCLASS {}
	}
}

And this is the descendant

CONTAINER Tdescendant
{
	 **INCLUDE Trootclass;**  
	GROUP GROUP_DESCENDANT_CLASS
	{
		BUTTON BUTTON_DESCENDANT {}
	}
        **INCLUDE Trootclass;**  
}

When using the blue alternative, I do not see the root class button at all.
When using the red alternative, I  see the root class button, yes. But it behaves strange, I cannot select the GROUP_ROOTCLASS at all in the Attributes Manager in C4D, something is not working here..
How do I use the INCLUDE directive correctly, or furthermore - what have I done wrong?

On 07/06/2013 at 03:39, xxxxxxxx wrote:

Have you tried including Tbase to the Trootclass?  I think that it would be required (even if you aren't using the base groups).

On 07/06/2013 at 04:39, xxxxxxxx wrote:

Originally posted by xxxxxxxx

Have you tried including Tbase to the Trootclass?  I think that it would be required (even if you aren't using the base groups).

Yes it is there, I omitted it here in the forum to not clutter my code.
But I made a mistake in my initial post, it is the Descendant's controls  that do not show up when I use the "blue" approach. The root controls are there all right.

But have I misunderstood? I am supposed to see both the root's controls and the descendant's controls? Right?

On 07/06/2013 at 04:56, xxxxxxxx wrote:

Ok, I found the culprit.
I had the enum for IDs starting on the same value, for both the root and the descendant, in their header files. So changing this fixed it.

On 07/06/2013 at 09:41, xxxxxxxx wrote:

Originally posted by xxxxxxxx

Have you tried including Tbase to the Trootclass?  I think that it would be required (even if you aren't using the base groups).

It isn't required. 🙂
But if you do not register the description along with a plugin,
you have to register it with RegisterDescription().