Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview and imagelist
Message
 
À
15/05/2003 00:02:47
Jordan Pastourel
Worksafe Management Systems
Toowong, Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00787999
Message ID:
00788509
Vues:
28
Hi Jordan

You might want to give VFPTree a try -- it doesn't require a separate ImageList control, and DragDrop is built in. You can download it from my website, http://jeffbowman.com/.

There's a catch, however: It's built with VB6 and therefore suffers from a VB6 bug (which MS isn't going to fix) that causes the app using VFPTree to crash if you leave VFPTree's containing form open without user interaction for a long time, say 30 minutes. Through testing, you might be able to pinpoint that failure time even closer.

I've been able to solve that in at least one case by placing a timer on the form that does nothing at all except fire an empty Timer() event. Why does it work? I have no idea.

HTH,
Jeff



>i have tried this and still no luck. the error i am getting is as follows:
>
>OLE IDispatch exception code 0 from TreeCtrl: Invalid object.
>
>any further suggestions? could it be a problem with my activeX component?
>thanks
>Jordan
>
>>Jordan,
>>
>>Try this:
>>
>>thisform.ole_treeview.object.imagelist = thisform.ole_imagelist.object
>>
>>
>>>Hi all
>>>i am having an issue with linking the imagelist control with the treeview control on my form. it's driving me crazy. i thought all i had to do was:
>>>
>>>this.imagelist = this.parent.olecontrol2
>>>
>>>where olecontrol2 is the imagelist
>>>
>>>what am i doing wrong? please help
>>>
>>>thanks
>>>Jordan

Read about the greatest fraud in the history of mankind.
See TaxableIncome.net.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform