BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sort TreeView

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
LarryJ
Guest





PostPosted: Thu Apr 20, 2006 12:03 am    Post subject: Sort TreeView Reply with quote



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





PostPosted: Thu Apr 20, 2006 9:03 am    Post subject: Re: Sort TreeView Reply with quote



"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.