Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using ActiveX control
Message
De
26/10/1998 00:59:39
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
26/10/1998 00:44:48
Man Wai Chang
Hang Hing Metal Manufacturer
Hung Hom, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00150387
Message ID:
00150390
Vues:
18
>I am trying to play with the ActiveControl ListView.
>
>I don't see any property (like the .ControlSource in VFP
>controls) for me to connect the control with a foxpro
>variables or fields. How could I dump data into it?
>Through the DoVerb method?
>
>And is there any sites that contains examples in
>using ActiveX controls, with a list of their PEMs?
Man,
You add data to it with a struct like :
with ThisForm.Listview1
	.ColumnHeaders.Add( , , "Title", .Width / 3)
	.ColumnHeaders.Add( , , "Contact", .Width / 3)
	.ColumnHeaders.Add( , , "Company", .Width / 3)
	.View = 3

	use home()+"samples\data\customer"
	scan
		itmX = .ListItems.Add()	&& Title,,customer.title
		itmX.text = customer.title
		itmX.SubItems(1) = customer.contact
		itmX.SubItems(2) = customer.Company
	endscan
endwith
But being frankly I can't imagine any use of "listview" in VFP. Its controls and PEM are loosy and work "sometimes" (I'm sure they all work in VB). If there weren't grid and listbox control in VFP, I would hack the use of listview :)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform