The Colorer Example Plug-In

The Colorer example plug-in (found in the samples folder of this SDK) is a dialog box plug-in that is invoked through a menu item in the Utilities/Plug-ins menu.

This example is a good place to start, as it is a good introduction to using the PageMaker 7.0 SDK. This example will show you how to work with the ADNI resource to define the properties associated with the plug-in, acquire and use the Component Interfaces, and use the Commands and Queries.

In examining the Colorer example, open up the ADNI resource (using ResEdit with the Macintosh version or a text editor with the Windows version.) You will find that it's set up so it is available in the menu, but only in the layout editor. Take a look in the ColorerPlugin.cpp source file, this is where all the work is done in most plug-ins.