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 next message
cbpporter is currently offline  cbpporter
Messages: 1217
Registered: September 2007
Senior Veteran
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 3 times)
Re: TreeCtrl display bug [message #48111 is a reply to message #48108] Thu, 18 May 2017 21:31 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 442
Registered: September 2012
Location: Poland, Kraków
Senior Member
Hello,

Please create redmine ticket for that issue with the url to forum thread. It is more easier to track them there. And, of course there is less change that the bug will be missed.

Sincerely,
Klugier


Ultimate++ - one framework to rule them all.
Re: TreeCtrl display bug [message #48112 is a reply to message #48111] Fri, 19 May 2017 10:49 Go to previous message
cbpporter is currently offline  cbpporter
Messages: 1217
Registered: September 2007
Senior Veteran
Done!

http://ultimatepp.org/redmine/issues/1727

I'll also look into it if I have time but I'm super swamped right now.
Previous Topic: How to add a structure to tree node
Goto Forum:
  


Current Time: Fri May 26 18:46:58 CEST 2017

Total time taken to generate the page: 0.02168 seconds