remapping toolbar button and menu items
‎Jan 22, 2010
08:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Jan 22, 2010
08:48 PM
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
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
‎Jan 22, 2010
09:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Jan 22, 2010
09:08 PM
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 🙂
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 🙂
‎Jan 26, 2010
12:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Jan 26, 2010
12:09 PM
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 🙂
>
>
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 🙂
>
>