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: 1273
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 15 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: 466
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 messageGo to next message
cbpporter is currently offline  cbpporter
Messages: 1273
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.
Re: TreeCtrl display bug [message #48149 is a reply to message #48112] Sat, 27 May 2017 16:36 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 11082
Registered: November 2005
Ultimate Member
Fixed.

Mirek
Re: TreeCtrl display bug [message #48158 is a reply to message #48149] Mon, 29 May 2017 12:44 Go to previous messageGo to next message
cbpporter is currently offline  cbpporter
Messages: 1273
Registered: September 2007
Senior Veteran
Thank you!

I took a peek at the fix too. I'll check to see if it fixed on my side too.
Re: TreeCtrl display bug [message #48161 is a reply to message #48158] Mon, 29 May 2017 17:04 Go to previous message
cbpporter is currently offline  cbpporter
Messages: 1273
Registered: September 2007
Senior Veteran
Done!

I need to update my CodeEditor fork to compile with the latest, but the TreeCtrl is fixed!
Previous Topic: How to add a structure to tree node
Goto Forum:
  


Current Time: Fri Jul 28 14:43:36 CEST 2017

Total time taken to generate the page: 0.01435 seconds