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)Â
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.
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
- orangesocks
- Mensajes: 59
- Registrado: Jue May 05, 2011 3:28 pm
- ignacio
- Site Admin
- Mensajes: 9443
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
Imagelist creation from code
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,
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
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
- orangesocks
- Mensajes: 59
- Registrado: Jue May 05, 2011 3:28 pm
Imagelist creation from code
Hi,
Ok. Thanks for you help.
Regards Giuseppe
Ok. Thanks for you help.
Regards Giuseppe