Here is the content of help file for alignment:
Alignment Property (ColumnHeader Object)
Returns or sets the alignment of text in a ColumnHeader object.
Syntax
object.Alignment [= integer]
The Alignment Property syntax has these parts:
Part Description
object An object expression that evaluates to a ColumnHeader object.
integer An integer that determines the alignment, as described in Settings.
Settings
The settings for integer are:
Constant Value Description
lvwColumnLeft 0 (Default) Left. Text is aligned left.
lvwColumnRight 1 Right. Text is aligned right.
lvwColumnCenter 2 Center. Text is centered.
object.Add(index, key, text, width, alignment, icon)
>>>>Hi Naomi,
>>>>
>>>>
>>>>>Hi everybody,
>>>>>
>>>>>When I try to see Help for ListView control it gives me an error message about not finding the file.
>>>>>
>>>>
>>>>I think, the help is came with Visual Studio 6 (VB). You have to install it to get the help file.
>>>>
>>>>
>>>>>My question is: how can I set the icon alignment in the header to be right aligned (right after the text). I'd like to replicate Windows Explorer look.
>>>>>
>>>>
>>>>Send LVM_SETCOLUMN message using LVCFMT_BITMAP_ON_RIGHT for LVCOLUMN structure. Take a look at MSDN :)
>>>>
>>>>Good luck
>>>
>>>Do you mean there is NO property? <g> Well, the alignment is not THAT important.
>>
>>I could be wrong. But AFAIK, there is NO such property in the Listview ActiveX. As usual there is always a limitation somewhere <g>
>
>I got the new idea in the meantime. Re-design the whole form using VFP grids instead. It was nice playing with ListViews, though <g>
Luc Nadeau
lnadeau@neova.ca"the theory, it is when all is known and that nothing works. The practice, it is when all works and that nobody knows why." - Albert Einstein (Nobel of physique 1921)