Information générale
Catégorie:
Contrôles ActiveX en VFP
Titre:
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.
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement