Command Icons
 
Method Introduced:
The method pfcUICommand::SetIcon allows you to designate an icon to be used with the command you created. The method adds the icon to the Creo Parametric command. Specify the name of the icon file, including the extension as the input argument for this method. A valid format for the icon file is a standard .GIF, .JPG, or.PNG. PTC recommends using .PNG format. All icons in the Creo Parametric ribbon are either 16x16 (small) or 32x32 (large) size. The naming convention for the icons is as follows:
Small icon—<iconname.ext>
Large icon—<iconname_large.ext>
* 
The legacy naming convention for icons <icon_name_icon_size.ext> will not be supported in future releases of Creo Parametric. The icon size was added as a suffix to the name of the icon. For example, the legacy naming convention for small icons was iconname16X16.ext. It is recommended to use the standard naming conventions for icons, that is, iconname.ext or iconname_large.ext.
While specifying the name of the icon file, do not specify the full path to the icon names.
The application searches for the icon files in the following locations:
<creo_loadpoint>\<datecode>\Common Files\text\resource
<Application text dir>\resource
<Application text dir>\<language>\resource
The location of the application text directory is specified in the registry file.
Commands that do not have an icon assigned to them display the button label.
You may also use this method to assign a small icon to a button. The icon appears to the left of the button label.
Was this helpful?