| View previous topic :: View next topic |
| Author |
Message |
LarryJ Guest
|
Posted: Thu Apr 20, 2006 12:03 am Post subject: Sort TreeView |
|
|
I have the TreeView Sort property set to stText but when the TreeView
displays the values are not sorted. Just before I display the form I check
the SortType with the code below and the SortType is still correctly set to
stText. Is there some other property that I must set to make the TreeView
sort? Can I force a sort?
if(TreeView1->SortType==Comctrls::stBoth){ Label2->Caption="stBoth"; }
if(TreeView1->SortType==Comctrls::stData){ Label2->Caption="stData"; }
if(TreeView1->SortType==Comctrls::stNone){ Label2->Caption="stNone"; }
if(TreeView1->SortType==Comctrls::stText){ Label2->Caption="stText"; }
Larry |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Thu Apr 20, 2006 9:03 am Post subject: Re: Sort TreeView |
|
|
"LarryJ" <LarryJ33 (AT) austin (DOT) rr.com> wrote in message
news:4446c81c$1 (AT) newsgroups (DOT) borland.com...
| Quote: | I have the TreeView Sort property set to stText but when
the TreeView displays the values are not sorted.
|
What exactly do you see? Please provide an example.
| Quote: | Can I force a sort?
|
TTreeNode has AlphaSort() and CustomSort() methods.
Gambit |
|
| Back to top |
|
 |
|