Page 1 of 1

[done]ExplorerListGadget associate icons

Posted: Fri Oct 30, 2009 8:20 am
by Denis
Fred/Freak,

the ExplorerListGadget displays for ICL files (icons library, both formats PE/NE), the same icon.
If it could extract the displayed icon (format PE only under vista, NE supported by W2000), it will display for all icl files, this icon, and if it doesn't extract it (bad PE format or NE format), it displays "a standard default" icon.

For exe file (PE format), ExplorerListGadget displays individual icon or "a standart default" icon if it doesn't extract it.

It will be good to display ICL files the same way than exe file (PE format) and by extension, for PE format files cpl, ocx.
Dll displayed standard icon is defined in imageres.dll file (under vista), so no change are required here.

I put 2 images, one from the MS shell for ICL PE file and another one from my tool (wich use ExplorerListGadget) for ICL PE file. ExplorerListGadget always display the first icon it finds for ICL.
Both images display the same folder.

I have two request for ExplorerListGadget :

- To display ICL files the same way than exe file (PE format) and by extension, for PE format files cpl, ocx (and others if any).

- Will it be possible to have a command to assign an icon for a specific file format (for example pdf or png etc.) ?


Thanks.

Image


Image

Re: ExplorerListGadget associate icons

Posted: Fri Oct 30, 2009 1:10 pm
by freak
The icons for file types are cached because it brings a large speed increase. Currently only .exe, .ico and .lnk are not cached. I can add more exceptions though.

> - To display ICL files the same way than exe file (PE format) and by extension, for PE format files cpl, ocx (and others if any).

Do cpl and ocx files commonly include icons ? I'd like to keep it fast, so the caching should only be turned off for types where it is really worth it.

> - Will it be possible to have a command to assign an icon for a specific file format (for example pdf or png etc.) ?

The displaying of individual icons for the file types is Windows only anyway. Linux only distinguishes between files and folders and on OSX we have no icons at all. I don't want to add yet another non-crossplatform command.

Re: ExplorerListGadget associate icons

Posted: Fri Oct 30, 2009 2:33 pm
by Denis
freak wrote:The icons for file types are cached because it brings a large speed increase. Currently only .exe, .ico and .lnk are not cached. I can add more exceptions though.

> - To display ICL files the same way than exe file (PE format) and by extension, for PE format files cpl, ocx (and others if any).

Do cpl and ocx files commonly include icons ? I'd like to keep it fast, so the caching should only be turned off for types where it is really worth it.
-> Do cpl and ocx files commonly include icons ?
cpl i think but not for ocx, but such files aren't numerous, it's not a reel problem to keep them cached.

Icl is a common format and its purpose is only to store icons. It will be good for icl to uncached them. Icl it's like an empty dll with only icon(s) resource (#RT_GROUP_ICON and #RT_ICON).

Re: ExplorerListGadget associate icons

Posted: Fri Oct 30, 2009 3:04 pm
by freak
icl is added to the exceptions. (for 4.40)

Re: ExplorerListGadget associate icons

Posted: Fri Oct 30, 2009 3:12 pm
by Denis
:D

Tks Freak