Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TreeView - I can't get the ImageList property initialize
Message
De
25/07/1997 21:24:42
Arnold Lee
K&A International Co.,Ltd
Hong Kong, Hong Kong
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00041539
Message ID:
00041758
Vues:
33
>>>I'm trying to associate an imagelist with the treeview list. I've both the treeview and the imagelist objects on a form together.
>>>Efforts to try and set the treeview's imagelist property to the imagelist object have failed.
>>>
>>>THISFORM.treeview.imagelist = THISFORM.imagelist
>>>
>>>I get an "invalid object" error message.
>>>
>>>Thanks,
>>>Steve Despres
>>
>>Have you also tried rightclicking over the Treeview to set the ImageList there?
>
>Steve, check your version of the comctl32.ocx. If it is not the same as on VFP CD-ROM in OS\SYSTEM directory, unregister old one, copy one from CD and register it again.
>Getting "wrong" ocx version - that what happened to me after VB installation - latest comctl32.ocx don't work properly with VFP. In my case neither setting of ImageList property of the TreeView, nor setting it in code worked.
>Now I have comctl32.ocx size 332288, date 08/21/96 - this one works for sure.
>
>Nick


To make Imagelist work with Treeview control,have following code in INIT() in treeview :

THIS.OBJECT.IMAGELIST = THISFORM..OBJECT

Enjoy using Treeview Control !
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform