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
problem in Refreshing at end of tree [message #14850] Tue, 18 March 2008 05:03 Go to next message
huanghuan is currently offline  huanghuan
Messages: 10
Registered: December 2007
Promising Member
Make sure the tree has a vertical scroll bar.
--------------------
...
+-aaa
|-bbb
--NODE
| |-sub1
| |-sub2
| -sub3
|-node1
-node2
--------------------
At bottom of the tree is show above.
A NODE has several sub nodes, and also has some sibling nodes at the end.
After the NODE closed, the UI below it did NOT refreshed.

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 next 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 391 times)
  • Attachment: TreeCtrl.h
    (Size: 10.58KB, Downloaded 370 times)

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

Report message to a moderator

icon14.gif  Re: problem in Refreshing at end of tree [message #14862 is a reply to message #14856] Tue, 18 March 2008 14:32 Go to previous message
huanghuan is currently offline  huanghuan
Messages: 10
Registered: December 2007
Promising Member
Thank you for all. I will update them.
I'm in a project base on Upp.
Upp is very good for UI develop.
Previous Topic: A [TreeCtrl] bug
Next Topic: Problem displaying labels under ubuntu 7.10
Goto Forum:
  


Current Time: Thu Apr 18 15:42:53 CEST 2024

Total time taken to generate the page: 0.02000 seconds