Hey,
It could seem redundant, but I'm trying to do "Explorer" with Perl and Tk here. Why? Well, kinda a proof-of-concept deal. Besides, I can make it as I wanna have it! I know Tk is rather limited when it comes to some OS specific things (and maybe I should do it with Tcl::Tk even), but I already have parts done in Tk and I know Tk best atm. So, how to get the icon associated with a surtain filetype in Perl? And, second question... What module is prefered here? I was thinking going for a matrix module (for the browseing view). It leans towards Tk::Mlistbox, since it has support for sorting and resizeing the columns. However, if I wanna display icons? I'm not sure, but I couln't find anything about adding images (icons) in Mlistbox. Either way, it would be cool knowing if there was a way to get the icons used in windows per filetype. That is, I dont mind if this only gonna work in windows because usage of Win32::XXX modules. Sure, there is:
my $folderimage = $pane->Getimage("folder");
my $fileimage = $pane->Getimage("file");
my $srcimage = $pane->Getimage("srcfile");
my $textimage = $pane->Getimage("textfile");
but its rather limited as you can see.
Furthermore I was hoping to use this trick with say Hlist aswell, to display correct icons...
So, feedback are greatly welcomed here as I was thinking doing this as a module, which one can just insert in your own frame and access its nice methods to change the data...
Thanks,
Ace