On 07/12/2017 at 07:54, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R19
Platform:
Language(s) : C++ ;
---------
While testing out some things and printing to the console I noticed that while hovering with the mouse over a tag (not selected), its GetDDescription is constantly called.
Is there a specific reason for this?
I can understand when the tag would be selected (as it shows the description into the Attribute Manager).
But not being selected and simply hovered over, what's the purpose here?
Bool MyTag::GetDDescription(GeListNode* node, Description* description, DESCFLAGS_DESC& flags)
{
if (!description->LoadDescription(node->GetType()))
return FALSE;
// fill the dropdown with dynamically values
const DescID *singleid = description->GetSingleDescID();
DescID cid = DescLevel( <gadgetID> , DTYPE_LONG, 0);
if (!singleid || cid.IsPartOf(*singleid, NULL)) // important to check for speedup c4d!
{
GePrint("dynamic values being added into dropdown");
BaseContainer listBC;
for (SortedStringArray::ConstIterator it = values.Begin(); it != values.End(); ++it)
{
listBC.SetString(it - values.Begin(), *it);
GePrint(*it);
}
...