次の方法で共有


FaceIds on Office toolbar buttons

When creating custom Office toolbar buttons (aka command bars), you can set the FaceId to some icon. But, where do you figure out what values you can use? I found an article on MSDN that helps out:

https://msdn.microsoft.com/library/default.asp?url=/library/en-us/dno97ta/html/faceid.asp

This has an Excel spreadsheet you can use to view the icons associated with the different IDs. However, you have to lower the default security level in Excel to allow unsigned macros to run. And, you can only look at 200 at a time (there icons up in the 10,000 range!). And, that'll only tell you want icons are available in the version of Office you are running. If you are working on code that will work on other versions of Office, you'll have to run this macro in different versions of Excel and compare. Why isn't there just a table up on MSDN somewhere with the different icons available in different versions of Office? And, it would be even nicer if there was a set of enumerations you could paste in your code so you don't have to hard code numbers everywhere.

Comments

  • Anonymous
    May 02, 2004
    The comment has been removed
  • Anonymous
    May 02, 2004
    The difference with Microsoft Entourage is that it doesn't provide a platform for using those icons. If it did, then you could argue that it should provide an easy way to find them. As it is, I'm not sure it's even legal to grab icons out of Entourage and redistribute them in another app.

    Office does a file with all the faceids defined (internally called tcid's). I'd actually forgotten that I can use it to search for the ids by name. But, that doesn't help anyone without the office source :-) And yes, it is a huge file.
  • Anonymous
    June 13, 2009
    PingBack from http://barstoolsite.info/story.php?id=2001