[done]ExplorerListGadget associate icons

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Denis
Enthusiast
Enthusiast
Posts: 778
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

[done]ExplorerListGadget associate icons

Post 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
Last edited by Denis on Fri Oct 30, 2009 3:13 pm, edited 1 time in total.
A+
Denis
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: ExplorerListGadget associate icons

Post 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.
quidquid Latine dictum sit altum videtur
Denis
Enthusiast
Enthusiast
Posts: 778
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: ExplorerListGadget associate icons

Post 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).
A+
Denis
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: ExplorerListGadget associate icons

Post by freak »

icl is added to the exceptions. (for 4.40)
quidquid Latine dictum sit altum videtur
Denis
Enthusiast
Enthusiast
Posts: 778
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: ExplorerListGadget associate icons

Post by Denis »

:D

Tks Freak
A+
Denis
Post Reply