Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListView - header's icon alignment
Message
De
30/08/2005 17:07:39
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01045162
Message ID:
01045318
Vues:
42
Hi Luc,

Maybe I missed something but this is what I know so far.

1. the ColumnHeader alignment is for the "Text" on the header, not for the "Icon".
2. it will give you an error if you set the alignment for the first column other than default (left)


>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>
Herman
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform