Change a toolbar icon?

Tung Fu (PTC) describes two methods Last Updated: 2006-09-08 =One way=

1. Create a XUI file which describes the new image. For example:



2. Put the image (myfontgrow.bmp) and the XUI file into your custom directory CUSTOM/dialogs.

3. Run the following ACL script (I named the XUI file image.xml):

window_load_component_file(win,'image.xml'); dlgitem_set(win,'Toolbar_FontSizeGrow', 'IMAGE', 'myimage');

Your image needs to have a magenta color background; otherwise, you need to specify the transparentcolor attribute in the image element in the XUI file. I use 24-bit BMP files, but Epic supports other formats as well. Currently, the dlgitem_set only works with standalone images, and it doesn't work with imagelists.

=A simpler way=

1. Copy the ToolbarMarkup.bmp from EPICPATH\lib\dialogs to your custom directory CUSTOM\dialogs.

2. Modify the "Increase Font" icon in the CUSTOM\dialogs\ToolbarMarkup.bmp

The next time you run Epic, Epic will pick up the updated ToolbarMarkup.bmp in the CUSTOM\dialogs.