Cancel
Showing results for 
Search instead for 
Did you mean: 

Large Icons for User function

PLM World Member Phenom PLM World Member Phenom
PLM World Member Phenom

Hallo,

 

In PS 13.1 the functions has small and large icons.

 

How can I implement a large icon in user function?

 

Thanks

Kind regards,

Benjamin Voelzke
7 REPLIES

Re: Large Icons for User function

Siemens Pioneer Siemens Pioneer
Siemens Pioneer

Hi

You can implement a large icon similier to the way you implement the small one:

override the LargeBitmap method, so that it will return a string of the embded icon.

BTW, the embeded icon should be in png format, 32*32 pixels, 32bpp BGRA format.

 

Re: Large Icons for User function

PLM World Member Phenom PLM World Member Phenom
PLM World Member Phenom

Hello Ofer,

 

I added a large icon in my userfunctions.

on my picture you can see the ribbon Custom or PSC.

my question:

 

Why PS blank function names?

What has more priority ? Small or Large Icon?

 

Thanks

 

ps_icons.jpg

 

Kind regards,

Benjamin Voelzke

Re: Large Icons for User function

Experimenter
Experimenter

Hi,

 

the only icon that works with me is a * .bmp without transparency.
I am desperately trying to use an icon with transparency. However, these are not recognized.
I tried without success with a * .png and * .ico.

 

With which program and in which file format do I have to provide the icon?

Can a possibly an example icon provide?

 

Thank you very much

Christian

 

Re: Large Icons for User function

Legend
Legend

If you want to use a small icon, then you have to add a bmp- image with 16x16px and it should have a background color of #c0c0c0 and no transparency. You can access this image with the Bitmap property in the command class

 

If you want to use a large image, then you can use a png or ico file with 32x32px and it can have a transparency. You can access this image with the LargeBitmap property in the command class.

 

VERY IMPORTANT: You always have to set the build action for the image to "Embedded resource"

Re: Large Icons for User function

Experimenter
Experimenter
Hey Markus

Many Thanks!

I got it!

Small icon:
You're absolutely right.
In addition, I can still say that synonymous a 16x16 * .png without transparency, but with the color #C0C0C0 as transprence works.

I wonder why this is not in the documentation.

Christian

Re: Large Icons for User function

Legend
Legend

Hi,

 

this is documented! See <path>\eMPower\TecnomatixSDKHelp\Tecnomatix.NET.chm

 

Re: Large Icons for User function

Legend
Legend

I forgot to mention, that there is a great video series from DianaG in the Developer knowledge base.

API-Training