Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Right Align Column in ListView 6.0 / SP4?
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00426701
Message ID:
00462736
Views:
16
>>>oColumnHeader = oListView.ColumnHeaders.Add(Index, Key, Text, Width, Alignment)
i never goot it to work this way, but it did work when
oListView.COLUMNHEADERS("MyColumn").ALIGNMENT=1

>Question:
>Has anyone else experience with this problem and, more important, a solution/work-around.

The icons - and maybe your already aware of this - need to be contained by the imagelist control, and then:
.listimages.add(1,"CHECKMRK",LoadPicture("CHECKMRK.ICO"))
Then use the index (1) or key in the COLUMNHEADERS definition. If you use the arrows to designate the sort, they would both need to be in the image list and assigned in the Sort method. If this doesn't get you going, message back and I locate some script and and pass it along.
There is a source example of ListView instanciation in files, COM/DCOM OLE Automation : ADO Query Analyzer.
Terry
Imagination is more important than knowledge
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform