Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search   Register Register  Login Login

TagData GetDDescription - when hovering

 Post Reply Post Reply
Author
Message
C4DS View Drop Down
Member
Member


Joined: 2015 Dec 01
Online Status: Offline
Posts: 157
Post Options Post Options   Quote C4DS Quote  Post ReplyReply Direct Link To This Post Topic: TagData GetDDescription - when hovering
    Posted: 2017 Dec 07 at 7:54am

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);
        }

...


Back to Top
S_Bach View Drop Down
Forum Moderator
Forum Moderator
Avatar

Joined: 2011 Jun 27
Online Status: Offline
Posts: 1344
Post Options Post Options   Quote S_Bach Quote  Post ReplyReply Direct Link To This Post Posted: 2017 Dec 08 at 1:49am
Hello,

The Object Manager provides two functions when you hover the cursor over an object or tag. First, a bubble help text with the element type and name will appear. Second, a "Show Help" command is constructed that can be invoked from the context menu or using a shortcut. This "Show Help" command is constructed using information from the element's Description.

The continuous call of GetDDescription is probably just a lack of optimization.

best wishes,
Sebastian
SDK Support Engineer
Back to Top
C4DS View Drop Down
Member
Member


Joined: 2015 Dec 01
Online Status: Offline
Posts: 157
Post Options Post Options   Quote C4DS Quote  Post ReplyReply Direct Link To This Post Posted: 2017 Dec 08 at 2:48am
OK,
Is there anything I can do to prevent the continuous call of GetDDescription. Since the element's description will not result in any valid information into the online help system.
In other words, can I prevent GetDDescription getting called, since "Show Help" will not result in anything useful?

Back to Top
S_Bach View Drop Down
Forum Moderator
Forum Moderator
Avatar

Joined: 2011 Jun 27
Online Status: Offline
Posts: 1344
Post Options Post Options   Quote S_Bach Quote  Post ReplyReply Direct Link To This Post Posted: 2017 Dec 08 at 8:10am
Hello,

there is nothing you can do to prevent this.

best wishes,
Sebastian
SDK Support Engineer
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.094 seconds.