$f = "%WINSYSDIR%\joy.cpl /0"; seticons("+exe>$f"); goto <xy>; tab("rename", "|$f");PS: Not a bug, but I guess a suggestion, icon index for all filetypes doesn't work in the list for icon custom columns, not sure if that is easily possible.
$f = "%WINSYSDIR%\joy.cpl /0"; seticons("+exe>$f"); goto <xy>; tab("rename", "|$f");Code: Select all
*\ /e>folder_icons.dll /6 //matches all empty foldersCode: Select all
*\ /e>"folder_icons.dll /6" //matches all empty foldersIt's located in the Data subfolder of XYplorer (\XYplorer\Data\folder_icons.dll). I verified that the location is correct by using an ICO instead of a DLL.
Damn it, sorry for the confusion
Code: Select all
Snip: CustomColumn 1
XYplorer 24.50.0009, 12/6/23 7:03:39 AM
Action
ConfigureColumn
Caption
Icon Resources
Type
3
Definition
$c = get("counticons", <cc_item>);
if ($c) {
set $ret;
while ($i++ < $c) {
$ret .= "<cc_item> /$i<crlf>";
}
return $ret;
}
Format
7
Trigger
1
Item Type
0
Item Filter
exe;dll;cpl;ocx;scr;icl;bpl;wlx;wfx;wcx;wdx;acmCode: Select all
! Icons extracted from icon resources: Since v24.50.0008, a leak in GDI objects caused
a fast application meltdown when displaying extracted icons. Fixed.
It works well now. I'm actually surprised how fast it is. There is no caching at all involved, so each time the column is repainted (and that's many times when you resize it) all the icons are freshly extracted and re-drawn.jupe wrote: ↑12 Jun 2023 17:01 Cool thanks for fixing that.I got slightly worried the feature might need to be withdrawn for not playing nicely with other list features.
Another thing I noticed is that the icon indexes used in sysicon are off, they start at 0 not 1, so the last icon is missing. I probably shouldn't have used it in my orig post.