Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview and Imagelist
Message
 
À
10/06/1998 08:51:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00106686
Message ID:
00106760
Vues:
26
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform