General information
Category:
ActiveX controls in VFP
Title:
Alignment in listviews when assigning an icon to header
Hi all,
I've got a problem with aligning columns in a listview-control. I want to reflect the sortorder of the listview-items with an arrow-image in the header (like Windows Explorer).
When setting the appropriate properties (in the ColumnClick method of the columnheader-object) as described in the listview example from MSDN, this all works fine, but:
whenever the icon-property is set (no matter what value), the listview-items are always aligned to the left side (even if the alignment-property is set to 1 or 2). This happens also when the icon property is set to 0.
The alignment-property only works correct when creating the headers with the add-method, WITHOUT assigning an icon-index.
Does anyone have a solution/work-around for this problem?
T.I.A.
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only