Adding a new graphic and its tool

Adding a new graphic to GrafEdit requires writing a new class for your graphic, writing a new class for the interactor that creates the graphic, and adding a new tool that creates the interactor. Look at the code for TCanvasPolygon, TCanvasPolygonCreationTool, and TCanvasPolygonCreationInteractor for this task.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker