CalebH

ProcessBook .NET Add-In Custom Toolbar Icons

Discussion created by CalebH on Sep 10, 2009
Latest reply on Mar 27, 2013 by DavidMFairchild

Hello - I have a couple questions about how to implement custom icons for ProcessBook .NET Add-In Toolbar buttons

 

1) Is it possible to include the images in a .dll/resouce and reference them in a manner like this:
http://www.mztools.com/articles/2005/MZ2005007.aspx    or
http://msdn.microsoft.com/en-us/library/aa290364%28VS.71%29.aspx

 

2) Is it possible to use images that are partially transparent?

 

The code below works for an image in some folder but does not support transparency (bitmap only it seems, and the image isn't hidden in a .dll, etc)

 

Dim
e As PBCommandBarButton = CType(m_pbControl, PBObjLib.PBCommandBarButton)
e.Style = pbButtonStyle.pbButtonIcon
e.LoadFace("C:\<path>\<image>.bmp")

 

I've been trying to figure out if using "e.LoadFaceResource(nAppInstance As Integer, nBmpResourceId As Integer)" is the way to go but I don't know what the correct values are for the arguments.

 

Thanks!

Outcomes