Página 1 de 1

Imagelist creation from code

Publicado: Vie Jul 26, 2013 12:03 pm
por orangesocks
Hi,
I'm trying to create an imagelist from code.
The image used is a toolstrip image of size 312x24 which contains 13 images in format 24x24 added to the resources of the app.
When I create the object and add the resource to it the :GetImageCount() returns 26.
It looks like the image is doubled.
Attached is a small project that shows the behaviour.
Any help would be greatly appreciated.
Regards Giuseppe

Attached files TestImageList.zip (12.4 KB)Â

Imagelist creation from code

Publicado: Vie Jul 26, 2013 12:15 pm
por ignacio
orangesocks escribió el vie, 26 julio 2013 12:03Hi,
I'm trying to create an imagelist from code.
The image used is a toolstrip image of size 312x24 which contains 13 images in format 24x24 added to the resources of the app.
When I create the object and add the resource to it the :GetImageCount() returns 26.
It looks like the image is doubled.
Attached is a small project that shows the behaviour.
Any help would be greatly appreciated.
Regards Giuseppe
Hello,
It seems there is a bug on our Create method(). BTW to fix this problem just put the Add() Method after the Create() method. That's all.
Regards,

Imagelist creation from code

Publicado: Vie Jul 26, 2013 12:42 pm
por orangesocks
Hi,
Ok. Thanks for you help.
Regards Giuseppe