0 Replies Latest reply on Aug 26, 2013 10:50 AM by Pat TydOZWlsbA==

    How to change a toolbar button bitmap on the fly

    Pat TydOZWlsbA==

      I have an addin toolbar where I would like to change the button graphics for one of the buttons on the fly at runtime.

      I also have a timer that is fired to check for some state and if that state becomes true I want to change the button graphics for one of the toolbar buttons to a different bitmap to indicate this state.

       

      Is this possible?

       

      I am aware of ShowBubbleTooltip() but I don't want to keep showing this each time the timer fires.

      What I'm looking for is like a 'badge' or 'glyph' to add to a toolbar button to indicate a condition or state to the user.

       

      I'm currently creating the toolbar via:  CreateCommandGroup2, AddCommandItem2 and  "...LargeIconList = iBmp.CreateFileFromResourceBitmap..."

       

      Thanks for your help!