Página 1 de 1
SysImageList question
Publicado: Jue Feb 19, 2009 5:22 pm
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
SysImageList question
Publicado: Jue Feb 19, 2009 5:31 pm
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
>
SysImageList question
Publicado: Jue Feb 19, 2009 5:31 pm
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
>
SysImageList question
Publicado: Jue Feb 19, 2009 7:13 pm
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
SysImageList question
Publicado: Jue Feb 19, 2009 7:13 pm
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
SysImageList question
Publicado: Jue Feb 19, 2009 9:51 pm
por notengo
Giuseppe,
please, post a little sample to test and the bugs you found and I will fix it.
Regards,
José Lalín
SysImageList question
Publicado: Jue Feb 19, 2009 9:51 pm
por notengo
Giuseppe,
please, post a little sample to test and the bugs you found and I will fix it.
Regards,
José Lalín
SysImageList question
Publicado: Vie Feb 20, 2009 9:57 am
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
>
SysImageList question
Publicado: Vie Feb 20, 2009 9:57 am
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
>
SysImageList question
Publicado: Vie Feb 20, 2009 11:10 am
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
--
SysImageList question
Publicado: Vie Feb 20, 2009 11:10 am
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
--
SysImageList question
Publicado: Dom Feb 22, 2009 6:22 pm
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
SysImageList question
Publicado: Dom Feb 22, 2009 6:22 pm
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
SysImageList question
Publicado: Dom Feb 22, 2009 8:51 pm
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
SysImageList question
Publicado: Dom Feb 22, 2009 8:51 pm
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
SysImageList question
Publicado: Dom Feb 22, 2009 8:51 pm
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
SysImageList question
Publicado: Dom Feb 22, 2009 8:51 pm
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
SysImageList question
Publicado: Lun Feb 23, 2009 11:07 am
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
SysImageList question
Publicado: Lun Feb 23, 2009 11:07 am
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
SysImageList question
Publicado: Lun Feb 23, 2009 11:17 pm
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
SysImageList question
Publicado: Lun Feb 23, 2009 11:17 pm
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