TShellListView add event OnFileAdded
Original Reporter info from Mantis: theo @theo222
-
Reporter name:
Original Reporter info from Mantis: theo @theo222
- Reporter name:
Description:
I could not find a way to change Item.ImageIndex in TShellListView.
This is possible with this patch.
Usage Example:
procedure TForm1.ShellListView1FileAdded(Sender: TObject; Item: TListItem);
begin
case Item.SubItems[1] of
'.txt':Item.ImageIndex:=1;
'.png','.jpg':Item.ImageIndex:=2;
else Item.ImageIndex:=1;
end;
end;
See attached image.
Mantis conversion info:
- Mantis ID: 27422
- Version: 1.3 (SVN)
- Fixed in revision: r47836 (#7110836d)