Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Image list problems
Message
 
À
23/01/1999 15:23:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00179426
Message ID:
00179436
Vues:
26
>>>HI all !!!
>>>I have a form that contains a treeview object and a imagelist, and assigned image index to the nodes of the tree...
>>>when I run the form I have the error saying that I have to initialize the imagelist object before I use it!!
>>>
>>>what I'm missing?
>>>Thanks
>>
>>William, add to your Treeview.Init()
>>
>>this.Object.ImageList = this.parent.oleImageList.Object
>>
>>(supposing your ImageList control has the name "oleImageList")
>>(don't forget that ImageList control must be placed on the form before the TreeView.)
>>
>>Nick
>Works !!!!
>:-D
>I know you knew it but, thanks a lot !!!
>You know in visual basic this is a lot easier but I'm allways have thought that VFP is superior... thanks for not let me down...

Actually you need to add that code to Init() only because something was screwed up (at least for VFP) in recent versions of the Treevew control.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform