In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Imagelist creation from code

Xailer professional forum in English
User avatar
orangesocks
Posts: 55
Joined: Thu May 05, 2011 3:28 pm

Imagelist creation from code

Postby orangesocks » Fri Jul 26, 2013 12:03 pm

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)Â
User avatar
ignacio
Site Admin
Posts: 8574
Joined: Mon Apr 06, 2015 8:00 pm
Location: Madrid, Spain
Contact:

Imagelist creation from code

Postby ignacio » Fri Jul 26, 2013 12:15 pm

orangesocks escribió el vie, 26 julio 2013 12:03
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

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,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
User avatar
orangesocks
Posts: 55
Joined: Thu May 05, 2011 3:28 pm

Imagelist creation from code

Postby orangesocks » Fri Jul 26, 2013 12:42 pm

Hi,
Ok. Thanks for you help.
Regards Giuseppe

Return to “English”