Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding Images To Imaglist At Runtime
Message
 
 
To
08/10/2001 15:07:26
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00565530
Message ID:
00565627
Views:
15
>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 Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform