Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding Images To Imaglist At Runtime
Message
De
08/10/2001 15:29:09
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00565530
Message ID:
00565631
Vues:
17
>>Larry,
>>
>>Let me explain this a little better, maybe. I'm using two imagelists (Icons and SmallIcons). My .ico has two icons in it. A 32x32 and a 16x16 (each is a different color). My form has two imagelists. I set Image1 to have a size of 32x32 and Image2 has a size of 16x16. I can use the property page to load the icon. Image1 will show the 32x32 icon and Image2 will show the 16x16 icon, the desired result. When I try to load them at runtime, both pick up the same icon. In my case, they both get the 32x32. Image2 is still 16x16. The 32x32 was resized to fit. I want to know how to get each imagelist to load the appropriatly sized icon from the file.
>>
>>Thanks,
>>Dan
>
>Dan,
>I caught that after I posted the message and attempted to Update it with a new response. However, you replied while I had the message open for editing so my new message couldn't be posted. Here is the other response:
>
>Do you have separate ICO files for large and small icons or are they both in the same DLL? You just said you did. If in the same, I don't know how to input both of them. I don't have a file I could experiment with. If they are in the same file, can you break them out into separate files? That way you could load each one with LoadPicture.

Larry,

The VB LoadPicture function has parameters for size when dealing with an .ico, Foxpro's does not. :(

LoadPicture([filename], [size], [colordepth],[x,y])

I guess I'll have to do some more research.

Thanks,
Dan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform