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 

TListView(vsReport) Columns Drag&Drop, and how to move colum

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





PostPosted: Mon Apr 03, 2006 4:03 pm    Post subject: TListView(vsReport) Columns Drag&Drop, and how to move colum Reply with quote



Hi all,

in ListView with FullDrag==true and ViewStyle==vsReport can be columns
drag&dropped to new position. When first column is moved, then small images
are shown in new position as well.
Now I need to save this setup and again load it and reconstruct column order
when program is started again.
I have marked columns thru Tag property so I know the right order, but I
don't know how to move columns programmatically to get result as if they
were drag&dropped.

Thanks for any hints.

Pavel Stejgerle
Back to top
Pavel Stejgerle
Guest





PostPosted: Thu Apr 06, 2006 12:03 pm    Post subject: Re: TListView(vsReport) Columns Drag&Drop, and how to move c Reply with quote



Finally I have found solution. I have to resort to plain WINAPI and use
ListView_SetColumnOrderArray and
ListView_GetColumnOrderArray in conjuction with ListView_SetColumnWidth and
ListView_GetColumnWidth.
Unfortunately TListView knows nothing about Column order.
And I need Tag property any more.

HTH others.

Pavel Stejgerle

"Pavel Stejgerle" <pavel.stejgerle (AT) tribut (DOT) cz> wrote in message
news:44313ce9$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hi all,

in ListView with FullDrag==true and ViewStyle==vsReport can be columns
drag&dropped to new position. When first column is moved, then small
images
are shown in new position as well.
Now I need to save this setup and again load it and reconstruct column
order
when program is started again.
I have marked columns thru Tag property so I know the right order, but I
don't know how to move columns programmatically to get result as if they
were drag&dropped.

Thanks for any hints.

Pavel Stejgerle

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.