General information
Category:
ActiveX controls in VFP
>I thought I tried that, and that it anly affected the text in the column header (and not so much the contents of the column). I'll try it again though.
>Thanks
>
>
>>>Other than using a fixed pitch font, is there any method to right justify text in the Ms ListView 6 (similar to the the way the 'file size') appears in Explorer. There are also those liitle dots ('...') that appear when the LV control thinks the column with is too narrow.
>>>AHA:
>>>Terry
>>
>>Terry,
>>
>>When you create the column headers you can specify the alignment.
>>
>>oColumnHeader = oListView.ColumnHeaders.Add(Index, Key, Text, Width, Alignment)
>>
>>Alignment is either: 0 - Left, 1 - Right, 2 - Center
>>
>>Dan
I've got another problem with aligning columns.
I want to reflect the sortorder of the listview-items with an arrow-image in he header (like Windows Explorer).
By setting the appropriate properties in the ColumnClick method of the columnheader-object (as described in the listview example from MSDN) this is working fine, but:
As soon as the icon-property ever got assigned a 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 works only as expected when creating the headers and (sub)items whith the add-method without assigning an icon-index.
Question:
Has anyone else experience with this problem and, more important, a solution/work-around.
Very long Jan
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