native icon set on windows

I'm developing for GTK, Windows XP, Vista and 7. The great thing about wxwidgets with GTK is that the wx.ArtProvider provides the correct icon for the user's theme based on the menu or toolbar item ID. I'd like to do the same thing for Windows XP/Vista/7.

It seems that in Windows, the "standard" icons used in MS applications (notepad, visual studio, etc) are not available to wxwidgets and the icons must be extracted from resource files (license issues?). So what happens when a user installs an icon theme? Do those icons become available to wxwidgets and can they be detected and used?

I'd like to provide a truly native look and feel on Windows which includes the native icons appropriate for XP, Vista or 7. If I must provide the icons, is there a license issue with using the icons extracted from the OS? It seems that if Microsoft wanted any type of consistent UI across Windows applications, they would allow the use of these "standard" icons.

Thanks.

Randall

Hi Randall,

···

On Mar 1, 12:07 am, Randall Smith <rand...@tnr.cc> wrote:

I'm developing for GTK, Windows XP, Vista and 7. The great thing about
wxwidgets with GTK is that the wx.ArtProvider provides the correct icon
for the user's theme based on the menu or toolbar item ID. I'd like to
do the same thing for Windows XP/Vista/7.

It seems that in Windows, the "standard" icons used in MS applications
(notepad, visual studio, etc) are not available to wxwidgets and the
icons must be extracted from resource files (license issues?). So what
happens when a user installs an icon theme? Do those icons become
available to wxwidgets and can they be detected and used?

I'd like to provide a truly native look and feel on Windows which
includes the native icons appropriate for XP, Vista or 7. If I must
provide the icons, is there a license issue with using the icons
extracted from the OS? It seems that if Microsoft wanted any type of
consistent UI across Windows applications, they would allow the use of
these "standard" icons.

Thanks.

Randall

What standard MS icons? Notepad doesn't even have a toolbar. I just
compared Wordpad to Word 2003 and their icons don't match. I think the
only icons that do match are in the MS Office Suite, and that's
probably only from version to version as I'm pretty sure Word 2007
looks different.

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org

Hi,

I'm developing for GTK, Windows XP, Vista and 7. The great thing about
wxwidgets with GTK is that the wx.ArtProvider provides the correct icon for
the user's theme based on the menu or toolbar item ID. I'd like to do the
same thing for Windows XP/Vista/7.

It seems that in Windows, the "standard" icons used in MS applications
(notepad, visual studio, etc) are not available to wxwidgets and the icons
must be extracted from resource files (license issues?). So what happens
when a user installs an icon theme? Do those icons become available to
wxwidgets and can they be detected and used?

I'd like to provide a truly native look and feel on Windows which includes
the native icons appropriate for XP, Vista or 7. If I must provide the
icons, is there a license issue with using the icons extracted from the OS?
It seems that if Microsoft wanted any type of consistent UI across Windows
applications, they would allow the use of these "standard" icons.

Only GTK has a native implementation for the ArtProvider class in
wxWidgets2.8. MSW and OSX only have a few of the common native icons
available (ART_INFORMATION, ART_WARNING, ART_ERROR).

I wrote a patch to add support for more of the native Mac icons about
2+ years ago but it was never applied and I never got any answer as to
why not.

I think that Windows can supply some system icons through the
LoadIcon/LoadImage methods (MFC/C++), but I am not familiar with what
icons are available. So you might be able to do that through ctypes
and then convert to a wxBitmap somehow, though I have never tried.

Cody

···

On Mon, Mar 1, 2010 at 12:07 AM, Randall Smith <randall@tnr.cc> wrote: