Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TreeView and ImageList Controls in VFP6.0
Message
From
25/08/1998 09:30:52
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00129363
Message ID:
00129660
Views:
25
>I am trying to use oleTreeView from VFP6.0 and it keeps giving me an error that Imagelist must be initialized prior to use. I know that in VFP5 the order in which these two controls are added to the form makes a big difference, so I have tried adding them in both sequences, first one then the other. Neither seems to make a difference.
>
>The ImageList property in the TreeView control is not staying set: I can set it (in the ctlTreeView properties, not VFPs), save the properties, then immediately go into the property list again and it is back to .
>
>I am hoping someone has had some experience with this and can help.
>
>Thanks very much
>
>Reg

Well, well, isn't the world small. I was playing with it all morning.

In the TreeView's Init it's simply
this.object.imagelist=thisform.ImageList1
or
this.imagelist=thisform.ImageList1

...whichever fires. I'm kind of confused after all the dance I had with it, so don't know for sure when you have to insert the .object reference and when not (I think it's a yes for properties, and a nope for methods, but that's guesswork). Anyway, in my case it won't even find the imagelist object from TreeView property sheet anymore, so I ended up adding it programmatically.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform