03-29-2017, 05:44 AM
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.
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.