Windows System Image List

Hello,

I'm writing a application with a ListCtrl which needs to fetch icons
from the Windows system image list (it's a list of files, I need their
icons).
FileZilla just subclasses ListCtrl and assigns the handle to the
m_hImageList member [1]. But in wxPython I can't do that.

Is there any way to make it work?

Thanks,
Conrado

[1] http://filezilla.svn.sourceforge.net/viewvc/filezilla/FileZilla3/trunk/src/interface/systemimagelist.h?revision=1630&view=markup

Conrado,

Hello,

I'm writing a application with a ListCtrl which needs to fetch icons
from the Windows system image list (it's a list of files, I need their
icons).
FileZilla just subclasses ListCtrl and assigns the handle to the
m_hImageList member [1]. But in wxPython I can't do that.

Is there any way to make it work?

Thanks,
Conrado

[1] FileZilla® download | SourceForge.net

Try asking at the pywin32 mailing group about extracting the images. Once you have those, they may work in wxPython.

http://mail.python.org/mailman/listinfo/python-win32

Mike

Conrado PLG wrote:

···

On Mon, Apr 28, 2008 at 4:26 PM, Mike Driscoll > <mdriscoll@co.marshall.ia.us> wrote:

Try asking at the pywin32 mailing group about extracting the images. Once
you have those, they may work in wxPython.

python-win32 Info Page

Thanks, Mike and Robin. I've found a way [1] to do what I want though
it's not optimal, since I need to copy every icon into a image list.
But it's not a noticeable decrease in performance...

[1] http://www.ginstrom.com/scribbles/2007/08/31/file-list-with-icons-on-wxpython-windows/

Ah, I should have realized that was what you were wanting to do. You can get system file type icons via the MimeTypesManager class.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Thanks, I've missed that!

But I have another question... through the MimeTypesManager I can load
the 32x32 icon, but I want the 16x16 one. Is there any way to do that?

Thanks,
Conrado

···

On Mon, Apr 28, 2008 at 7:54 PM, Robin Dunn <robin@alldunn.com> wrote:

Ah, I should have realized that was what you were wanting to do. You can
get system file type icons via the MimeTypesManager class.

Conrado PLG wrote:

···

On Mon, Apr 28, 2008 at 7:54 PM, Robin Dunn <robin@alldunn.com> wrote:

Ah, I should have realized that was what you were wanting to do. You can
get system file type icons via the MimeTypesManager class.

Thanks, I've missed that!

But I have another question... through the MimeTypesManager I can load
the 32x32 icon, but I want the 16x16 one. Is there any way to do that?

AFAIK, wx.FileType just gives you whatever is registered as the standard icon for the file type, and it probably assumes there is only one.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!