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.

SysImageList question

Xailer professional forum in English
Responder
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

SysImageList question

Mensaje por Giuseppe Bogetti »

Hi,
I have a problem with a SysImageList component attached to a Treeview
control.
I can successfully retrieve the image index of files and drives but when I
speficy a path to a folder like "C:Windows" I always get the index for the
unknown file type icon.
Also to get the correct images shown into the treeview, I have to add 1 to
the returned index. Is it correct ?
Regards, Giuseppe
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

SysImageList question

Mensaje por ignacio »

Giuseppe,
Surely the problem is on the size of the image that does not correspond with
the size of each bitmap on the imagelist. Keep in mind thath the Image list
breaks the images in parts to adjust them to its image size. For example, if
you define that your imagelist uses bitmaps of 16x16 and you add a bitmap of
16x32, the result will be two images of 16x16.
Regards,
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Giuseppe Bogetti" <orangesocks@bgsoft.it> escribió en el mensaje
news:l6bbezrjvmzp$[email=.1kgmt66s8f7jj.dlg@40tude.net...].1kgmt66s8f7jj.dlg@40tude.net...[/email]
> Hi,
>
> I have a problem with a SysImageList component attached to a Treeview
> control.
>
> I can successfully retrieve the image index of files and drives but when I
> speficy a path to a folder like "C:Windows" I always get the index for
> the
> unknown file type icon.
>
> Also to get the correct images shown into the treeview, I have to add 1 to
> the returned index. Is it correct ?
>
> Regards, Giuseppe
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

SysImageList question

Mensaje por ignacio »

Giuseppe,
Surely the problem is on the size of the image that does not correspond with
the size of each bitmap on the imagelist. Keep in mind thath the Image list
breaks the images in parts to adjust them to its image size. For example, if
you define that your imagelist uses bitmaps of 16x16 and you add a bitmap of
16x32, the result will be two images of 16x16.
Regards,
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Giuseppe Bogetti" <orangesocks@bgsoft.it> escribió en el mensaje
news:l6bbezrjvmzp$[email=.1kgmt66s8f7jj.dlg@40tude.net...].1kgmt66s8f7jj.dlg@40tude.net...[/email]
> Hi,
>
> I have a problem with a SysImageList component attached to a Treeview
> control.
>
> I can successfully retrieve the image index of files and drives but when I
> speficy a path to a folder like "C:Windows" I always get the index for
> the
> unknown file type icon.
>
> Also to get the correct images shown into the treeview, I have to add 1 to
> the returned index. Is it correct ?
>
> Regards, Giuseppe
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

SysImageList question

Mensaje por Giuseppe Bogetti »

Il Thu, 19 Feb 2009 17:31:14 +0100, Ignacio Ortiz de Zúñiga ha scritto:
> Giuseppe,
>
> Surely the problem is on the size of the image that does not correspond with
> the size of each bitmap on the imagelist. Keep in mind thath the Image list
> breaks the images in parts to adjust them to its image size. For example, if
> you define that your imagelist uses bitmaps of 16x16 and you add a bitmap of
> 16x32, the result will be two images of 16x16.
>
> Regards,
Ignacio,
correct me if I'm wrong but I'm not adding images to the SysImageList.
These are the step I've done:
- I have defined a treview
- I've build a SysImageList object which as stated by the help file
encapsulate the standard Windows image list
- I've assigned the SysImageList object to the oImageList property of the
treeview
- When I add an item to the treeview I set the nImage property of the item
to the value returned by the GetIconIndex() method of the SysImageList
This last step is successfull when I request the index for drives or single
files but not when I request the index for a folder
If you need the sources let me know.
Thanks
--
Regards,
Giuseppe
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

SysImageList question

Mensaje por Giuseppe Bogetti »

Il Thu, 19 Feb 2009 17:31:14 +0100, Ignacio Ortiz de Zúñiga ha scritto:
> Giuseppe,
>
> Surely the problem is on the size of the image that does not correspond with
> the size of each bitmap on the imagelist. Keep in mind thath the Image list
> breaks the images in parts to adjust them to its image size. For example, if
> you define that your imagelist uses bitmaps of 16x16 and you add a bitmap of
> 16x32, the result will be two images of 16x16.
>
> Regards,
Ignacio,
correct me if I'm wrong but I'm not adding images to the SysImageList.
These are the step I've done:
- I have defined a treview
- I've build a SysImageList object which as stated by the help file
encapsulate the standard Windows image list
- I've assigned the SysImageList object to the oImageList property of the
treeview
- When I add an item to the treeview I set the nImage property of the item
to the value returned by the GetIconIndex() method of the SysImageList
This last step is successfull when I request the index for drives or single
files but not when I request the index for a folder
If you need the sources let me know.
Thanks
--
Regards,
Giuseppe
notengo
Mensajes: 417
Registrado: Vie Oct 12, 2007 1:29 pm

SysImageList question

Mensaje por notengo »

Giuseppe,
please, post a little sample to test and the bugs you found and I will fix it.
Regards,
José Lalí­n
notengo
Mensajes: 417
Registrado: Vie Oct 12, 2007 1:29 pm

SysImageList question

Mensaje por notengo »

Giuseppe,
please, post a little sample to test and the bugs you found and I will fix it.
Regards,
José Lalí­n
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

SysImageList question

Mensaje por ignacio »

Guissepe,
> correct me if I'm wrong but I'm not adding images to the SysImageList.
Sorry, I saw the 'Imagelist' text and thought you were using a TImageList
control
> If you need the sources let me know.
A small sample showing the error could be very useful.
Regards
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Giuseppe Bogetti" <orangesocks@bgsoft.it> escribió en el mensaje
news:zircg8dmajvu.1u1n7ymagwl8z$[email=.dlg@40tude.net...].dlg@40tude.net...[/email]
> Il Thu, 19 Feb 2009 17:31:14 +0100, Ignacio Ortiz de Zúñiga ha scritto:
>
>> Giuseppe,
>>
>> Surely the problem is on the size of the image that does not correspond
>> with
>> the size of each bitmap on the imagelist. Keep in mind thath the Image
>> list
>> breaks the images in parts to adjust them to its image size. For example,
>> if
>> you define that your imagelist uses bitmaps of 16x16 and you add a bitmap
>> of
>> 16x32, the result will be two images of 16x16.
>>
>> Regards,
> Ignacio,
>
> correct me if I'm wrong but I'm not adding images to the SysImageList.
>
> These are the step I've done:
> - I have defined a treview
> - I've build a SysImageList object which as stated by the help file
> encapsulate the standard Windows image list
> - I've assigned the SysImageList object to the oImageList property of the
> treeview
> - When I add an item to the treeview I set the nImage property of the item
> to the value returned by the GetIconIndex() method of the SysImageList
>
> This last step is successfull when I request the index for drives or
> single
> files but not when I request the index for a folder
>
> If you need the sources let me know.
>
> Thanks
>
> --
> Regards,
>
> Giuseppe
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

SysImageList question

Mensaje por ignacio »

Guissepe,
> correct me if I'm wrong but I'm not adding images to the SysImageList.
Sorry, I saw the 'Imagelist' text and thought you were using a TImageList
control
> If you need the sources let me know.
A small sample showing the error could be very useful.
Regards
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Giuseppe Bogetti" <orangesocks@bgsoft.it> escribió en el mensaje
news:zircg8dmajvu.1u1n7ymagwl8z$[email=.dlg@40tude.net...].dlg@40tude.net...[/email]
> Il Thu, 19 Feb 2009 17:31:14 +0100, Ignacio Ortiz de Zúñiga ha scritto:
>
>> Giuseppe,
>>
>> Surely the problem is on the size of the image that does not correspond
>> with
>> the size of each bitmap on the imagelist. Keep in mind thath the Image
>> list
>> breaks the images in parts to adjust them to its image size. For example,
>> if
>> you define that your imagelist uses bitmaps of 16x16 and you add a bitmap
>> of
>> 16x32, the result will be two images of 16x16.
>>
>> Regards,
> Ignacio,
>
> correct me if I'm wrong but I'm not adding images to the SysImageList.
>
> These are the step I've done:
> - I have defined a treview
> - I've build a SysImageList object which as stated by the help file
> encapsulate the standard Windows image list
> - I've assigned the SysImageList object to the oImageList property of the
> treeview
> - When I add an item to the treeview I set the nImage property of the item
> to the value returned by the GetIconIndex() method of the SysImageList
>
> This last step is successfull when I request the index for drives or
> single
> files but not when I request the index for a folder
>
> If you need the sources let me know.
>
> Thanks
>
> --
> Regards,
>
> Giuseppe
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

SysImageList question

Mensaje por Giuseppe Bogetti »

Il Thu, 19 Feb 2009 21:51:18 +0100, José Lalí­n ha scritto:
> Giuseppe,
>
> please, post a little sample to test and the bugs you found and I will fix it.
>
> Regards,
> José Lalí­n
José,
here is the project you requested.
Thanks for your help.
--
Regards,
Giuseppe
--
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

SysImageList question

Mensaje por Giuseppe Bogetti »

Il Thu, 19 Feb 2009 21:51:18 +0100, José Lalí­n ha scritto:
> Giuseppe,
>
> please, post a little sample to test and the bugs you found and I will fix it.
>
> Regards,
> José Lalí­n
José,
here is the project you requested.
Thanks for your help.
--
Regards,
Giuseppe
--
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

SysImageList question

Mensaje por Giuseppe Bogetti »

Il Thu, 19 Feb 2009 21:51:18 +0100, José Lalí­n ha scritto:
> Giuseppe,
>
> please, post a little sample to test and the bugs you found and I will fix it.
>
> Regards,
> José Lalí­n
Hi Josí¨,
I received the modified SysImageList and everything works like a charm.
Regarding shell programming I have another question:
I've noticed that the Shell.api defines constants for
using SHFileOperation(...) function but I haven't found
any documentation about it.
Is it possible to use it ?
If yes, could you possibly send me some documentation about it ?
Again thanks for you kindness.
--
Regards,
Giuseppe
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

SysImageList question

Mensaje por Giuseppe Bogetti »

Il Thu, 19 Feb 2009 21:51:18 +0100, José Lalí­n ha scritto:
> Giuseppe,
>
> please, post a little sample to test and the bugs you found and I will fix it.
>
> Regards,
> José Lalí­n
Hi Josí¨,
I received the modified SysImageList and everything works like a charm.
Regarding shell programming I have another question:
I've noticed that the Shell.api defines constants for
using SHFileOperation(...) function but I haven't found
any documentation about it.
Is it possible to use it ?
If yes, could you possibly send me some documentation about it ?
Again thanks for you kindness.
--
Regards,
Giuseppe
notengo
Mensajes: 417
Registrado: Vie Oct 12, 2007 1:29 pm

SysImageList question

Mensaje por notengo »

Giuseppe,
> I received the modified SysImageList and everything works like a charm.
Cool!
> Regarding shell programming I have another question:
> I've noticed that the Shell.api defines constants for
> using SHFileOperation(...) function but I haven't found
> any documentation about it.
>
> Is it possible to use it ?
> If yes, could you possibly send me some documentation about it ?
It is implemented as a component in sourceFileOperation.prg and the
documentation is in the TFileOperationDlg topic in the help file.
> Again thanks for you kindness.
Many thanks to you too.
Regards,
José Lalí­n
notengo
Mensajes: 417
Registrado: Vie Oct 12, 2007 1:29 pm

SysImageList question

Mensaje por notengo »

Giuseppe,
> I received the modified SysImageList and everything works like a charm.
Cool!
> Regarding shell programming I have another question:
> I've noticed that the Shell.api defines constants for
> using SHFileOperation(...) function but I haven't found
> any documentation about it.
>
> Is it possible to use it ?
> If yes, could you possibly send me some documentation about it ?
It is implemented as a component in sourceFileOperation.prg and the
documentation is in the TFileOperationDlg topic in the help file.
> Again thanks for you kindness.
Many thanks to you too.
Regards,
José Lalí­n
notengo
Mensajes: 417
Registrado: Vie Oct 12, 2007 1:29 pm

SysImageList question

Mensaje por notengo »

Giuseppe,
many thanks for your advice and help.
It is already fixed in CVS and will we available in next update.
Regards,
José Lalí­n
notengo
Mensajes: 417
Registrado: Vie Oct 12, 2007 1:29 pm

SysImageList question

Mensaje por notengo »

Giuseppe,
many thanks for your advice and help.
It is already fixed in CVS and will we available in next update.
Regards,
José Lalí­n
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

SysImageList question

Mensaje por Giuseppe Bogetti »

Il Sun, 22 Feb 2009 20:51:25 +0100, José Lalí­n ha scritto:
Jose,
>
> It is implemented as a component in sourceFileOperation.prg and the
> documentation is in the TFileOperationDlg topic in the help file.
>
My fault, sometimes you don't see an elephant even if it's in front of you.
One more thing about TSysImageList.
The documentation of the component refers to a GetImage and GetImageIndex
methods which don't exist in the class and the other methods are not
documented.
--
Regards,
Giuseppe
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

SysImageList question

Mensaje por Giuseppe Bogetti »

Il Sun, 22 Feb 2009 20:51:25 +0100, José Lalí­n ha scritto:
Jose,
>
> It is implemented as a component in sourceFileOperation.prg and the
> documentation is in the TFileOperationDlg topic in the help file.
>
My fault, sometimes you don't see an elephant even if it's in front of you.
One more thing about TSysImageList.
The documentation of the component refers to a GetImage and GetImageIndex
methods which don't exist in the class and the other methods are not
documented.
--
Regards,
Giuseppe
notengo
Mensajes: 417
Registrado: Vie Oct 12, 2007 1:29 pm

SysImageList question

Mensaje por notengo »

Giuseppe,
> One more thing about TSysImageList.
>
> The documentation of the component refers to a GetImage and GetImageIndex
> methods which don't exist in the class and the other methods are not
> documented.
I already wrote the new documentation on the weekend and sent the changes
to Ignacio to update the help file.
Regards,
José Lalí­n
notengo
Mensajes: 417
Registrado: Vie Oct 12, 2007 1:29 pm

SysImageList question

Mensaje por notengo »

Giuseppe,
> One more thing about TSysImageList.
>
> The documentation of the component refers to a GetImage and GetImageIndex
> methods which don't exist in the class and the other methods are not
> documented.
I already wrote the new documentation on the weekend and sent the changes
to Ignacio to update the help file.
Regards,
José Lalí­n
Responder