D
Dave Mc
Hi,
I've created an Addin for OneNote following the guidelines in 'How to Create
a OneNote Toolbar Addin' (a very useful article - thanks to Daniel Escapa)
and have it running (almost) happily (see a subsequent question). I've
inferred, perhaps wrongly, that it's possible for the button that calls the
AddIn to have an icon, rather than just plain text, by using the IconPath and
IconIndex registry keys added to the HKCU/////{GUID} list.
Using those two registry values, I've tried pointing at an icon file. I
first added the existing .ico file into the AddIn project, then added the
simple .ico filename into the ApplicationFolder list of the setup project. I
also set the two registry key values I indicated above: for Icon Path, I used
the simple .ico file name; for IconIndex, I used '0'. I've tried several
alternatives in trying to make this work, even removing the 'ButtonText'
parameter, but to no avail. By the way, I don't get any build or
installation errors when trying this.
I scanned the source of a couple of PowerToy projects available on the web,
but they don't appear to even use the Registry construct, let alone the
IconPath/IconIndex parameters.
Can someone advise whether what I'm trying to do is even possible, please?
If it is, can you give some pointers as to where I might be going wrong?
TIA
DaveMc
I've created an Addin for OneNote following the guidelines in 'How to Create
a OneNote Toolbar Addin' (a very useful article - thanks to Daniel Escapa)
and have it running (almost) happily (see a subsequent question). I've
inferred, perhaps wrongly, that it's possible for the button that calls the
AddIn to have an icon, rather than just plain text, by using the IconPath and
IconIndex registry keys added to the HKCU/////{GUID} list.
Using those two registry values, I've tried pointing at an icon file. I
first added the existing .ico file into the AddIn project, then added the
simple .ico filename into the ApplicationFolder list of the setup project. I
also set the two registry key values I indicated above: for Icon Path, I used
the simple .ico file name; for IconIndex, I used '0'. I've tried several
alternatives in trying to make this work, even removing the 'ButtonText'
parameter, but to no avail. By the way, I don't get any build or
installation errors when trying this.
I scanned the source of a couple of PowerToy projects available on the web,
but they don't appear to even use the Registry construct, let alone the
IconPath/IconIndex parameters.
Can someone advise whether what I'm trying to do is even possible, please?
If it is, can you give some pointers as to where I might be going wrong?
TIA
DaveMc