Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alignment setting in MS Listview control
Message
 
 
To
30/11/2001 03:23:03
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00587867
Message ID:
00588415
Views:
16
>
>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--
Previous
Reply
Map
View

Click here to load this message in the networking platform