The UNIX operating system does not directly support resource DLLs. If you are building applications for UNIX only, you can build your icons using an icon editor and use them directly in VisualAge by specifying the file name in the appropriate settings view.
If you are building an application for deployment on multiple platforms, you can take advantage of the same icon mapping facility that VisualAge uses to provide portability. To exploit this mapping facility, do the following:
icon 800 MiscIcon/athltcat.ico icon 801 MiscIcon/runner.ico icon 802 MiscIcon/world.ico
Put this file in the VisualAge (startup) directory or in a directory specified in the bitmapPath path in your abt.ini file. VisualAge uses this file to locate your actual icon files.
bitmapPath=/home/guest/myicons:/home/guest/mybitmaps
When VisualAge needs to access icon 801 in the userpal module, it searches as follows:
Note: | When an OS/2 icon file contains multiple formats, VisualAge selects the largest format available (normally 40 by 40). When an icon or bitmap cannot be found, VisualAge uses a solid white icon or bitmap instead. |
You can include icons and bitmaps in the same DLL and mapping file.