Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with TreeView + ImageList
Message
 
To
02/02/2000 06:52:27
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00326048
Message ID:
00326052
Views:
27
Try putting your treeview and imagelist controls in a container and save that as the class. What seems to have happened is that you have put the imagelist and the treeview on a form, saved just the treeview as class - you then lose the imagelist control when using the saved treeview class.

>Hi, Foxes!
>
>I have a problem and I don't know what to do:
>
>I have a form with a TreeView. It works pretty good. Today, I need to save it as class, because I need to reuse it.
>
>I've saved as class, without made any change in code. However, it doesn't work as class.
>
>Error Message: UNKNOWN MEMBER OLEIMAGELIST
>
>I'll explain: In TreeView's Init, I have the following code (the problematic one)
>This.Object.ImageLIst = This.Parent.oleImageList.Object
>
>This code is necessary because we need ImageList Controle to put bmps in treeview.
>
>Well, as I already told, the same cold works with form without been class, but as a class, it doesn't work.
>
>May anybody help me?
>
>P.S.: I'm using VFP 6 with Service Pack 3
>
>Thanks in Advance
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform