 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Brian Plotkin Guest
|
Posted: Mon Nov 24, 2003 11:13 pm Post subject: OnColumnDragged in a TListView |
|
|
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 |
|
 |
|
|
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
|
|