Providing the Icon
Function Introduced:
The function
ProCmdIconSet() allows you to provide an icon to be used with the command you created. The function adds the icon to the command. The function takes the command identifier as one of the inputs and the name of the icon file, including the extension as the other input. A valid format for the icon file is a standard
.GIF,
.JPG, or
.PNG. PTC recommends using
.PNG format. All icons in the
Creo+ 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>
|
Note:
|
The legacy naming convention for icons <icon_name_icon_size.ext> will not be supported in future releases of . 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.
|
The application searches for the icon files in the following locations:
• <creo_loadpoint>\<datecode>\Common Files\text\resources
• <application_text_dir>\resource
• <application_text_dir>\<language_dir>/resource
The location of the application text directory is specified in the Creo TOOLKIT registry file.
The button is replaced with the icon image.
Commands that do not have an icon assigned to them display the button label.
You may also use this function to assign a small icon to a button.