Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alignment setting in MS Listview control
Message
 
 
À
30/11/2001 03:23:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00587867
Message ID:
00588415
Vues:
17
>
>I have two questions about the MS Listview control:

>1. The Alignment settings for right or center doesn't seems to work in
> the columnheaders.add()-method. Is there a trick?


I just tested and it works for any column but the first. The first column accepts only Left aliigment otherwise it generates an error.
loHeader = THIS.ColumnHeaders.Add(,,,,1)
<
>2. How can I sort in a column with date items?

The same way you sort any other column. Here's the code you can put in the ListView ColumnClick Method
PROCEDURE ColumnClick
  *** ActiveX Control Event ***
  LPARAMETERS loColumnheader
  IF THIS.Sorted
	THIS.SortKey = loColumnHeader.Index - 1
  ENDIF
ENDPROC
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform