Hot Door CORE Forum
Hierarchy view tooltips - Printable Version

+- Hot Door CORE Forum (http://hotdoorcore.com/forum)
+-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1)
+--- Forum: General discussion (http://hotdoorcore.com/forum/forumdisplay.php?fid=3)
+--- Thread: Hierarchy view tooltips (/showthread.php?tid=120)



Hierarchy view tooltips - Gaxx - 03-27-2017

Hello. I have a question about HierarchicalView class. When I fill the tree with elements, I create them like this:

hdi::core::TreeEntry newNode(std:Confusedtring("entry"), hdi::core::EntryValue(std:Confusedtring("entry")), NULL);

So basically its just a string for id and a value constructed with string. No additional data. Everything works fine. However when a tree entry is hovered over an empty tooltip pops up over it. Is it possible to use element path or id as text for tooltip? Or better yet - disable tooltips for tree elements?


RE: Hierarchy view tooltips - garrett - 03-28-2017

That's interesting, it shouldn't be showing any tooltips at all if you haven't explicitly set one. Can you share some sample code that exhibits the problem?

We will be releasing a new version of hdi_core fairly soon which has many changes to the Windows UI under the hood, so the issue might already be resolved FYI.


RE: Hierarchy view tooltips - Gaxx - 03-29-2017

I've tested this on windows.

hdi::core::HierarchicalView tree= hdi::core::HierarchicalView(hdi::core::Rect(15, 30, 155, 100));
hdi::core::HierarchicalView::EntryVector entries;
hdi::core::TreeEntry newNode("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", hdi::core::EntryValue("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), NULL);
hdi::core::TreeEntry newNode2("bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", hdi::core::EntryValue("bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"), NULL);
newNode.pushChild(newNode2);
entries.push_back(newNode);
tree.setEntries(entries);

If this is done, entry with "aaaaaa" gives proper tooltip while "bbbbbbb" gives an empty one.