Message 1 of 3
ButtonDefinition vs ButtonDefinitionHandler

Not applicable
05-18-2009
03:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have an Inventor VB6.0 Add-in which I want to make compatible with the new ribbon interface of IV2010. The add-in already had a menu in the classic interface. In the inventor API helpfile there is described howto make new ribbon tabs and buttons. First you have to declare a ButtonDefinition and then you can create the buttondefinition with the AddButtonDefinition command. And of course then you can add it to a ribbon.
Large parts of my add-in are programmed by an ex-colleague. The existing buttons (in the classic interface) are declared/created in a slightly different manner. The buttondefinition is declared as a ButtonDefinitionHandler and it is created with the AddInSiteObject.CreateButtonDefinitionHandler command.
Although this is working, I would like to know what the difference is between these 2 methods. Is my method out-dated and do I have to use the new one?
Regards, Daniël Reesing
I have an Inventor VB6.0 Add-in which I want to make compatible with the new ribbon interface of IV2010. The add-in already had a menu in the classic interface. In the inventor API helpfile there is described howto make new ribbon tabs and buttons. First you have to declare a ButtonDefinition and then you can create the buttondefinition with the AddButtonDefinition command. And of course then you can add it to a ribbon.
Large parts of my add-in are programmed by an ex-colleague. The existing buttons (in the classic interface) are declared/created in a slightly different manner. The buttondefinition is declared as a ButtonDefinitionHandler and it is created with the AddInSiteObject.CreateButtonDefinitionHandler command.
Although this is working, I would like to know what the difference is between these 2 methods. Is my method out-dated and do I have to use the new one?
Regards, Daniël Reesing