Home » U++ Library support » TreeCtrl » Drag & Drop , Sort, GetValue( x )
Drag & Drop , Sort, GetValue( x ) [message #19586] |
Sun, 21 December 2008 00:13 |
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
|
|
|
|
|
Drag & Drop , Sort, GetValue( x )
By: sapiency on Sun, 21 December 2008 00:13
|
|
|
Re: Drag & Drop , Sort, GetValue( x )
By: sapiency on Sun, 21 December 2008 14:04
|
|
|
Re: Drag & Drop , Sort, GetValue( x )
By: mirek on Mon, 22 December 2008 09:50
|
|
|
Re: Drag & Drop , Sort, GetValue( x )
By: sapiency on Sat, 27 December 2008 23:30
|
Goto Forum:
Current Time: Fri Mar 29 14:20:09 CET 2024
Total time taken to generate the page: 0.01205 seconds
|