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 » Drag & Drop , Sort, GetValue( x )
Drag & Drop , Sort, GetValue( x ) [message #19586] Sun, 21 December 2008 00:13 Go to previous message
sapiency is currently offline  sapiency
Messages: 56
Registered: September 2008
Member
hi,

I'm just playing arount with TreeCtrl to get a solution for my problem.

Attache you find a modified reference example, including the logfile.

in the output you see the value get with
int n = tree.GetItemAtLine(i)
Value a = tree.GetValue(n);

and with the variable I used in the loop
Value b = tree.GetValue(i);

the output is not the same even after
tree.Sort(0);

is this a bug? or is just the way using GetItemAtLine(x) the only way to do this?

and I don't understand how to use the whole features of Sort...().

Do I have to overload the struct to use it?
00222 struct ValueOrder {
00223         virtual bool operator()(const Value& a, const Value& b) const = 0;
00224         virtual ~ValueOrder() {}
00225 };

Maybe you can give me a short example.

regards

reinhard

ps: I'm still working with 2008.1, build in July ...

[Updated on: Mon, 22 December 2008 12:14]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Optional highlighting of focused node's control along with value
Next Topic: gui crashes.
Goto Forum:
  


Current Time: Fri Mar 29 14:20:09 CET 2024

Total time taken to generate the page: 0.01205 seconds