Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview and Imagelist using Icons embeded in .app
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00495438
Message ID:
00495501
Vues:
11
>Hello people.
>
>Just wanted to know if this is a known bug in VFP 6.
>
>When I have a imagelist load icons embed in the app, It gives me a ole error at runtime. but when i exclude the icons from the app, it seems to run very nicely.
>
>Is there a valid explanation for this ?
>I wanted to put the icons in the app.
>
>thanx in advance ...

Hiten,

While I've heard of this problem before, I've never experienced it myself. Since I use a different method of populating a treeview or listview, I'm not sure whether or not it's my method that's the reason or something else I do. IAC, even if this doesn't solve the problem, my suggestion might have another benefit.

I gather all the bitmaps for my listviews and treeviews into a single bitmap. I use the Picture Clip AciveX control and load the other controls (via the GraphicCell property) in the control's Init. You can see how I do this this if you download my Obj2Bmp application from here.

The benefits (even if it doesn't solve your problem) is that rather than having to load a number of different bitmaps, you only have to load one. This means less file I/O and better performance. Further, if it doesn't work, there's only one additional file cluttering up the application's home directory.

If you decide to try this, please let me know if it does solve the problem.

PS - Obj2Bmp can be used to solve the biggest shortcoming of working with the Picture Clip control. By placing a shape on a form and placing the individual bitmaps within the shape, it's easy to create and maintain the image that the control uses.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform