Reply

help icons

[ Edited ]

 

I can't understand how to insert icons

in my add-in....

can explain step by step how to insert icons?

i'd like to do this only with VB (NOT C++ )

PLEASE HELP...

MAX

 

Posted by: max cul
Post date: 11/12/2008 10:36:28 AM

4 REPLIES

RE: help icons

[ Edited ]

 

You need to download the Developer Conference (2005) material and review it.  It has all of your answers.

 

http://www.jasonnewell.net/Downloads/tabid/63/Default.aspx

 

Posted by: Jason Newell
Post date: 11/19/2008 8:01:14 PM

RE: help icons

[ Edited ]

hallo jason,

 

i got the Developer Conference (2005) material and reviewed it.

i can build and start the toolbar addin from this material.

But why don't i have any buttons.

there is a ressource file with buttons in the project.

what do i have to do?

 

thx

marcus

 

Posted by: marcus heimsoth
Post date: 11/19/2008 10:55:26 PM

RE: help icons

[ Edited ]

 

hallo everyone who has same problems like me Smiley Wink

 

to get any icons on the toolbar buttons you have to do following steps:

 

1) create a ressource file like this one from the 2005 conference example

2) create bitmaps for the toolbarbuttons 16x16

3) connect these bitmaps to each other so that you have one long bitmap, (16x32) for 2 bitmaps (16x64) for four bitmaps and so on

4) put one bitmap for one toolbar in the ressource file, so every bitmap has its own id

5) this id is used in the "SetAddInInfo" function

6) after addin.dll is compiled run a script like this, you have to modify it, so me too:  (it's a .bat file)

!!!be sure you don't have strong names on your project!!!

 

ECHO OFF

CLS

 

SETLOCAL

PUSHD %VS71COMNTOOLS%

@call "E:\Programme\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"

POPD

 

resgen About.resx SEAddin.About.resources

 

SET VBCARGS=

SET VBCARGS=%VBCARGS% /win32resource:Addin.res

SET VBCARGS=%VBCARGS% /resourceSmiley FrustratedEAddin.About.resources

SET VBCARGS=%VBCARGS% /target:library

SET VBCARGS=%VBCARGS% /out:./bin/SEAddin.dll

SET VBCARGS=%VBCARGS% /referenceSmiley Frustratedystem.dll,System.Drawing.dll,System.Windows.Forms.dll,

SET VBCARGS=%VBCARGS%./bin/Interop.SolidEdgeConstants.dll,

SET VBCARGS=%VBCARGS%./bin/Interop.SolidEdgeFramework.dll

SET VBCARGS=%VBCARGS% *.vb

 

vbc %VBCARGS%

 

regasm /nologo /codebase ./bin/SEAddin.dll

ENDLOCAL

 

ECHO Compile Complete

pause

 

 

 

regards soth

 

Posted by: marcus heimsoth
Post date: 11/21/2008 12:50:54 AM

RE: help icons

[ Edited ]

 

thank you all

after 2 week i have noticed

the conference files in the download section!!

 

max

 

Posted by: max cul
Post date: 11/21/2008 9:08:29 PM