Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding Images To Imaglist At Runtime
Message
 
 
To
08/10/2001 13:40:22
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00565530
Message ID:
00565612
Views:
20
>>>Does anyone know how to add images to an Imaglist control at runtime using Foxpro. I'm trying to load images from and .ico file and have not had any success. Any help would be appreciated.
>>>
>>>Thanks,
>>>Dan
>>
>>Dan,
>>See Message#565430.
>>
>>HTH.
>
>Larry,
>
>Another question.
>
>I have two imagelists. One is 32x32 and the other is 16x16. I'm trying to load the appropriate icon from the .ico. I can do this using the control's property page, but when I do it at runtime, both load with the same image. Any advice?
>
>Thanks,
>Dan

Dan,
From the Windows Control help file (cmctl198.chm):

When the ImageList control is bound to another Windows Common Control, images of different sizes can be added to the control, however the size of the image displayed in the associated Windows Common Control will be constrained to the size of the first image added to the ImageList. For example, if you add an image that is 16 by 16 pixels to an ImageList control, then bind the ImageList to a TreeView control (to be displayed with Node objects), all images stored in the ImageList control will be displayed at 16 by 16 pixels, even if they are much larger or smaller.

From this, all icons will be displayed as whatever you loaded first. They all will be large or small but not a combination of both.

Sorry. :-(
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