Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview not seeing imagelist
Message
From
26/01/2000 16:10:07
 
 
To
26/01/2000 15:47:08
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00322319
Message ID:
00323157
Views:
25
>Have you guys tried:
>
>
this.tvwReports.ImageList = this.imgReports
>
>? That's what I use and it works fine.
>
>>The .object needs to be used like this:
>>
this.tvwReports.ImageList = this.imgReports.object
>>i.e. to get a reference to the imagelist object
>>>
>>>Same problem. Putting back the term object so as to produce
>>> THISFORM.PAGEFRAME1.PAGE1.NDTREEVIEW1.OBJECT.imagelist=;
>>> THISFORM.PAGEFRAME1.PAGE1.IMAGELIST
I tried it both ways
THIS.PageFrame1.Page1.NdTreeView1.IMAGELIST=THIS.PageFrame1.Page1.ImageList.OBJECT
and
THIS.PageFrame1.Page1.NdTreeView1.IMAGELIST=THIS.PageFrame1.Page1.ImageList.
I wonder if I'm having problems because of having named the imagelist "imagelist". No- just tried renaming the object to ilopenclosed and still no results.

Now I find myself wondering whether it is really a syntax problem or whether my control got contaminated somehow. No, I tried deleting and adding both the treeview and imagelist back in

I wonder if I'm doing something wrong when defining the imagelist or treeview.

Here is some exported code:
	ADD OBJECT gar.pageframe1.page1.ndtreeview1 AS ndtreeview WITH ;
		Top = 10, ;
		Left = 11, ;
		Height = 440, ;
		Width = 696, ;
		Name = "ndtreeview1"


	ADD OBJECT gar.pageframe1.page1.ilopenclosed AS olecontrol WITH ;
		Top = -32, ;
		Left = 95, ;
		Height = 100, ;
		Width = 100, ;
		Name = "ilopenclosed"


	ADD OBJECT ndragger1 AS ndragger WITH ;
		Top = 16, ;
		Left = 24, ;
		Width = 28, ;
		Height = 30, ;
		rl_change_generation = .F., ;
		Name = "Ndragger1", ;
		Timer.Name = "Timer"
Thanks

Gar
Thanks

Gar W. Lipow
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform