Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview and Imagelist
Message
 
 
To
10/06/1998 08:51:02
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00106686
Message ID:
00106760
Views:
25
>I am having a problem associating an imagelist control with a treeview control. The documentation says that the imagelist control should show up in the pull down of the imagelist property on the treeview, but nothing shows up. Any ideas?


This is a bug with VFP. You can achieve the same results, except that you need to do it programatically. Follow these steps to test:

1. Create a form
2. Add and imagelist - name it imagelist
3. Add a treeview - name it treeview
4. Add an image to the imagelist

You can do this by rightclicking the imagelist to bring up its custom property
sheet and selecting the images tab. This can also be done programtically in the
init() of the imagelist control like this:

This.ListImages.Add(1,"fox",LoadPicture(getfile()))

5. In the form, add thiscode:

With This
.treeview.object.imagelist = .imagelist.object
EndWith


This issue has been fixed in 6.0

Let me know how you make out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform