Programmer's Reference

Using operating system icons

Common Graphics provides two methods for creating a CgIcon given an operating system icon representation. The fromOSIcon: class method creates a CgIcon given an operating system icon. The fromSystem: class method is similar, but the operating system icon is specified as a platform-specific system icon constant.

On OS/2 PM, operating system icons are represented by class OSHpointer. On Windows, operating system icons are represented by class OSHicon.

Common Widgets provides a platform-independent way of requesting and releasing handles to share system icons in an icon cache using the getIcon:foregroundColor: and destroyIcon: methods of CgScreen.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]