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 

OnColumnDragged in a TListView

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





PostPosted: Mon Nov 24, 2003 11:13 pm    Post subject: OnColumnDragged in a TListView Reply with quote



All,

I am allowing columns in a TListView to be moved around and am using the
Column->Tag as my holder to know what is what. The problem I am
experiencing is that when a column has been dragged (My OnColumnDragged
event just keeps track of where the first column went) and then a sort
operation takes place (via OnColumnClick), the data received by the
OnColumnClick is incorrect. The OnColumnClick event receives a
TListColumn pointer. While in debug mode, if I check the Tag or Caption
of that TListColumn pointer, the data is NOT what it should be.

Example:

void __fastcall TItemsForm::SortView(TObject *Sender, TListColumn *Column)
{
View->CustomSort(NULL,Column->Tag);
}

Any ideas? Do I need to be doing more in the OnColumnDragged event?

Thanks in advance,
Brian

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.