Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TreeCtrl » TreeCtrl display bug
TreeCtrl display bug [message #48108] Thu, 18 May 2017 15:51 Go to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
U++ has this nice feature when some item can't be displayed in a rect, a tool-tip appears with the full text.

This works fine with a narrow TreeCtrl where you add a very wide child. Mouse-over the child and it will popup perfectly.

But if I add a display to the TreeCtrl, the popup jumps up about 2-3 pixels vertically.

This is an incredibly serious mega bug Laughing.

treetest::treetest()
{
	CtrlLayout(*this, "Window title");
	
	tree.SetRoot(Image(), "test");
	tree.SetDisplay(Single<ItemDisplay>());
	tree.Add(0, Image(), "aaaaaaaaaaaaaaaa");
	tree.Open(0);
}


Comment out the tree.SetDisplay(Single<ItemDisplay>()); and the tool-tip vertical jump is no more.

Test case attached.




  • Attachment: treetest.zip
    (Size: 1.53KB, Downloaded 211 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to add a structure to tree node
Next Topic: how to wake up TreeCtrl
Goto Forum:
  


Current Time: Fri Apr 26 15:40:45 CEST 2024

Total time taken to generate the page: 0.02612 seconds