ButtonDefinition vs ButtonDefinitionHandler

ButtonDefinition vs ButtonDefinitionHandler

Anonymous
Not applicable
319 Views
2 Replies
Message 1 of 3

ButtonDefinition vs ButtonDefinitionHandler

Anonymous
Not applicable
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
0 Likes
320 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

Yes, the ButtonDefinitionHandler method is obsolete
and should no longer be used. You should convert over to the newer
AddButtonDefinition. You can find several examples in the SDK.

 

Sanjay-
0 Likes
Message 3 of 3

Anonymous
Not applicable
Ok, thanks Sanjay!
0 Likes