Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Right Align Column in ListView 6.0 / SP4?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00426701
Message ID:
00465059
Vues:
17
>That in-line alignment property when I ADD the column doesn't seem to bite. Let me know if this is the way you are doing it. Perhaps the alignment 'assignment' would be needed after the icon assign.
>Add the column:
>oListView.COLUMNHEADERS.ADD(,"MyColumn1Name","MyColumn1Text",125,,)
>Assign the column data alignment:
>oListView.COLUMNHEADERS("MyColumn1Name").ALIGNMENT=1
>HTH
>PS:
>Where did you locate the 'triangle images'?

Thanks for your thinking, but i've tried this yet (with 1 and with 2 commas at the end of the add-statement). Se below.
(loObject.paHeaders is an array with the index, key, text ......)

FOR lnIndex = 1 TO lnColumns
loListview.ColumnHeaders.ADD(loObject.paHeaders[lnIndex,LVW_COL_INDEX] ;
,loObject.paHeaders[lnIndex,LVW_COL_KEY]) ;
,loObject.paHeaders[lnIndex,LVW_COL_TEXT]) ;
,loObject.paHeaders[lnIndex,LVW_COL_WIDTH],) && or ,,)

loListview.Columnheaders(lnIndex).Alignment = loObject.paHeader[lnIndex,LVW_COL_ALIGN]
ENDFOR

Guess what? It doesn't work.

I even tried setting the alignment-property directly after changing the icon-property: no solution.

I did a test in VB, Suprise, surprise: The same behaviour as in VFP.

The two icons are located in a imagelistcontrol (index 1 and 2). In my application they appear always at the left-side in the header.

I asume it's a 'unknown feature' of a listview-control, so I'am try to live with is.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform