Listview Control : Use system icons

Is it possible to display the icon in a ListView exactly as it appears in Opus and other parts of the OS? That is, regardless of whether it’s a generic folder, a custom one, a Collection, etc.?
I’m specifically asking about folders, including virtual paths.

DialogListItem.icon docs say you can pass a folder path to get its icon:

For a list view control, returns or sets the icon associated with this item. You can specify the path of a file or folder to use its icon, or a file extension (e.g. ".txt") to use a generic filetype icon. You can also set it to "dir", "file", "ftp" and "ftps" to use generic icons. You can also extract an icon from a DLL or EXE by providing the path of the file followed by a comma and then the icon index within the file.

I don't know if that will work on all (virtual / collection / archive) path types, but we can probably provide a way to get those as well, if needed.

Yes. I tried passing the full path as a string before asking, but it doesn’t seem to be working.

Please do.

1 Like