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 » problem in Refreshing at end of tree
Re: problem in Refreshing at end of tree [message #14856 is a reply to message #14850] Tue, 18 March 2008 11:25 Go to previous messageGo to previous message
rylek is currently offline  rylek
Messages: 79
Registered: November 2005
Member
Thanks for the report!

This is a quick fix, to be applied to

uppsrc/CtrlLib/TreeCtrl.cpp#383:

change

	sb.SetTotal(treesize);

to

	if(treesize != sb.GetTotal()) {
		sb.SetTotal(treesize);
		Refresh();
	}

Regards

Tomas

P.S. Some other fixes have taken place recently in TreeCtrl.cpp. However, the above is the only occurrence of sb.SetTotal in the whole file. Alternatively I'm enclosing my up-to-date TreeCtrl.cpp you should be able to use as a replacement for yours. Unfortunately you would also have to update the header file.
  • Attachment: TreeCtrl.cpp
    (Size: 30.62KB, Downloaded 453 times)
  • Attachment: TreeCtrl.h
    (Size: 10.58KB, Downloaded 441 times)

[Updated on: Tue, 18 March 2008 11:31]

Report message to a moderator

 
Read Message
Read Message
Read Message icon14.gif
Previous Topic: A [TreeCtrl] bug
Next Topic: Problem displaying labels under ubuntu 7.10
Goto Forum:
  


Current Time: Thu Aug 21 01:19:49 CEST 2025

Total time taken to generate the page: 0.00361 seconds