General information
Category:
ActiveX controls in VFP
>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.
Previous
Next
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