Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Having trouble creating a button on a panel

1 REPLY 1
SOLVED
Reply
Message 1 of 2
chipwitch
336 Views, 1 Reply

Having trouble creating a button on a panel

Hi All.

 

I've spent all day searching to no avail. 

 

I'm trying to create an add-in with custom button on a custom ribbon panel using a custom .ico.  Every example I find shows using iPictureDisp as the type and the LoadPicture() method.  I've searched for a com or .net to include for LoadPicture and it appears that it's deprecated, part of vb6 namespace, which I can't find on my system.  First of all, I can create the button with text only.  Visual Studio's intellisense says the LoadPicture method is "undeclared".  I'm surprised I can't find others experiencing this issue as it's also what's suggested in the updated help file.

 

How are you handling this issue with your add-ins?  Finding version specific solutions is a nightmare.

 

Windows 7 64-bit

Inventor 2013 Professional (Production ultimate suite)

Visual Studio 2010 Express / VB.net

 

 

 

 

1 REPLY 1
Message 2 of 2
chipwitch
in reply to: chipwitch

I'm still having some trouble, however, I have managed to get an icon onto a button on a panel through the add-in on a 64-bit OS.

 

Should anyone else have this problem, create the class in the blog below and compile with your project.  Still seems like a lot of work to get a silly picture on a button!  Thanks to the author, Philippe Leefsma for providing this solution.

 

http://adndevblog.typepad.com/manufacturing/2012/06/how-to-convert-iconbitmap-to-ipicturedisp-withou...

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report