General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion Change toolbar Icon???

  • gcrews

    Change toolbar Icon???

    Participants 1
    Replies 0
    Last Activity 9 years, 7 months ago

    Is it possible to programmatically change the toolbar Icon? I am trying to make a menu item that toggles between checked and unchecked. The icon sets correctly when the Xmetal starts and it works when I don’t have any documents open.

    But I can’t seem to change the icon or faceID when a document is open. I call MakeFaceId in my macro and assign the new faceID to the button Popup doesn’t change In the GUI. I even tried deleting the popup button and recreating it.  How can I  change a toolbar icon in a custom macro ?

    Update: Never mind, I figured it out. I was using a static var reference to the command bar that was initialized when the macro loaded. Looks like I have to re obtain the command bar since its probably the DTD specific menu bar.

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support