Skip to main content
1-Visitor
January 23, 2010
Question

remapping toolbar button and menu items

  • January 23, 2010
  • 2 replies
  • 1005 views
I'm trying to change the default behavior of a couple of toolbar buttons
and the matching menu items. One of them change markup.
I'm able to get the menu item to call the alias I want by using the
menu_change command. The problem is getting the toolbar button to call
my alias. I tried using
map Toolbar_ChangeMarkup ChangeMarkupWithProtection
but it doesn't work. I ended up copying the xui editwindow.xml file to
my custom directory and changing the cmd attribute to point to my alias,
but doing so has caused the icon on the menu items (menu bar and pop up)
to not be displayed. Both the toolbar button and the menu items all
point to the same alias. Any ideas why the map command isn't working
for the toolbar button, or if there is a better way to do this?

Thanks,
--



Brian Jensen
bjensen@bluelid.com

    2 replies

    1-Visitor
    January 23, 2010
    Hi, Brian...

    For cases like this, where you want to modify some functionality,
    regardless of how it's invoked (menu, toolbar, etc.), it would
    probably be easiest to simply use the "alias" command to map the
    existing alias to your new function, since all of those user interface
    elements already point to the alias.

    -Brandon 🙂

    BrianJ1-VisitorAuthor
    1-Visitor
    January 26, 2010
    Thanks, that worked. I wasn't sure if I could override an alias like that.

    Brian



    Brandon Ibach wrote:
    > Hi, Brian...
    >
    > For cases like this, where you want to modify some functionality,
    > regardless of how it's invoked (menu, toolbar, etc.), it would
    > probably be easiest to simply use the "alias" command to map the
    > existing alias to your new function, since all of those user interface
    > elements already point to the alias.
    >
    > -Brandon 🙂
    >
    >