Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using ActiveX control
Message
From
26/10/1998 00:59:39
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
26/10/1998 00:44:48
Man Wai Chang
Hang Hing Metal Manufacturer
Hung Hom, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00150387
Message ID:
00150390
Views:
19
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform