cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Adding an image into icon

Sekar1
13-Aquamarine

Adding an image into icon

Hi,

 

I am creating a buttun using CREO parametric toolkit application. I am using the following functions -ProCmdActionAdd() 

ProCmdIconSet()

ProCmdDesignate() -  all of them returns no error.

But the image is not reflecting in creo parametric tool.

.png file is in the resource folder ie, <applicationfolder>/text/resource.

 

some one please suggest me what could have gone wrong .

 

Thanks

 

2 REPLIES 2
syalagudri
14-Alexandrite
(To:Sekar1)

Place it in "text\usascii\resource" and try. it may work

FabianWolf
13-Aquamarine
(To:Sekar1)

Maybe the images cause the problem. Make sure that you have two images within the folder you mentioned. A small one with size 16x16 pixels and a bigger one with 32x32 . The name of the bigger one has to be named with an appended "_large".

 

Example:

my_image.png (16x16)

my_image_large.png (32x32)

 

For ProCmdIconSet() use "my_image.png" as input.

Hope this helps.

Announcements


Top Tags