[gme-users] Changing Interpreter Icons

Kevin Smyth ksmyth at isis.vanderbilt.edu
Tue Jul 10 12:15:59 CDT 2012


I forgot to mention: for C# interpreters, you should also add the .ico
file to the project and set the "Copy to Output Directory" property to
"Copy if newer", and remove the old Component.ico from the project.


-----Original Message-----
From: gme-users-bounces at list.isis.vanderbilt.edu
[mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Kevin
Smyth
Sent: Tuesday, July 10, 2012 12:07 PM
To: gme-users
Subject: Re: [gme-users] Changing Interpreter Icons

Hi Jennifer,

For C++ interpreters, the icon is compiled by the resource compiler and
linked into your interpreter.dll. The default icon is called
CompIcon.ico. You can replace the contents of that file with the icon
you want, or change Component.rc to reference a different filename. Be
sure to compile Component.rc; you may need to do it manually, since
Visual Studio is bad at picking up changes external to the .rc file.

C++ interpreters tell GME where the icon is with this call:
COMRETURN(registrar->put_ComponentExtraInfo(loc,
CComBSTR(COCLASS_PROGID), CComBSTR("Icon"), CComBSTR(",IDI_COMPICON")));

For C# interpreters, you should change value of the iconName variable in
ComponentConfig.cs.

C# interpreters tell GME where the icon is with this call:
registrar.set_ComponentExtraInfo(ComponentConfig.registrationMode,
ComponentConfig.progID, "Icon", ComponentConfig.iconPath);

The above method is preferable. If you have to change it without
changing the code, you set the Icon REG_SV value under
HKLM\Software\Wow6432Node\GME\Components\[Progid]\ or its HKCU
equivalent.

Kevin


-----Original Message-----
From: gme-users-bounces at list.isis.vanderbilt.edu
[mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of
Jennifer Coston
Sent: Tuesday, July 10, 2012 11:10 AM
To: gme-users
Subject: [gme-users] Changing Interpreter Icons

Hi All,

I have written a bunch of interpreters for GME. The problem is that all
of the icons are the same so I have to hover over each one until I find
the one with the name that I want. Does anyone know of a way that I can
customize the icons?

Jennifer

_______________________________________________
gme-users mailing list
gme-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
_______________________________________________
gme-users mailing list
gme-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users


More information about the gme-users mailing list