• Custom icons for built-in commands in 2007 (2007)

    Home » Forums » AskWoody support » Productivity software by function » Productivity software by function – other » Custom icons for built-in commands in 2007 (2007)

    Author
    Topic
    #446729

    I’m trying to customize the 2007 ribbon using the customUI.xml file, and making good strides except for one thing:
    My XML is attempting to add useful commands to the ribbon which don’t have icons. So if I use the default, no icon appears. But if I use the image=”myIcon” for an image I know is loaded (because I can assign it to a button not for a built-in), it still doesn’t appear.

    Examples:
    — shows no icon
    — shows no icon
    — shows the icon

    Will work for clues

    Viewing 0 reply threads
    Author
    Replies
    • #1087089

      --Joe

      • #1087092

        I’ve been through the first, no help.
        The second I can’t seem to get to right now – site problems?

        In any case, I’ve found some nasty workarounds, requiring callbacks to my template which then execute the built-in functionality, but at least its a single set of callbacks (for Execute, ScreenTip, SuperTip, Pressed, Enabled, etc.) for all the built-ins.

        This sounds like it’s a typical Microsoft short-sightedness, not permitting you to change the icon of a built-in, so that commands always look the same, but if there’s no pic, you should have the chance to change it.

        • #1105300

          Don’t know if this’ll help. I’m just now trying to figure our Ribbons customizations.

          The few examples I’ve seen have a little something that your example doesn’t.
          If you’re use a custom image, the examples I see all use the file extension:
          If you’re using a built-in button image (and maybe finding a good one may make your life easier), examples use the imageMso: Notice the lack of file extension

          Bonus points to anyone who creates a macro that lists the imageMso IDs of all the built-in icons and shows the corresponding image in a printable file.

          Another possibility, and again I don’t know whether this will work. But can you hide the original button, and then create a whole new custom button that calls the original action. Maybe something like this(?):

          • #1105559

            As a follow-up to my own post, see post 706115 for a link to an Excel add-in that shows all icons and IdMso values.

    Viewing 0 reply threads
    Reply To: Custom icons for built-in commands in 2007 (2007)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: