cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

remapping toolbar button and menu items

BrianJ
12-Amethyst

remapping toolbar button and menu items

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 2
bibach
1-Visitor
(To:BrianJ)

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 🙂

BrianJ
12-Amethyst
(To:BrianJ)

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 🙂
>
>
Announcements

Top Tags