 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Pavel Stejgerle Guest
|
Posted: Mon Apr 03, 2006 4:03 pm Post subject: TListView(vsReport) Columns Drag&Drop, and how to move colum |
|
|
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
|
Posted: Thu Apr 06, 2006 12:03 pm Post subject: Re: TListView(vsReport) Columns Drag&Drop, and how to move c |
|
|
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 |
|
 |
|
|
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
|
|