Logo-small

3.7.2 Archetype Polymorph Application

We present a typical Polymorph application featuring Window, menu, toolbar and drawing canvas.The example is a painter application we present step by step.

The complete example is at http://www.squeaksource.com/CollaborActiveBook The example exposes several aspects in UI programming: Morph layout, Polymorph, Traits, graphic and form display manipulations, mouse handling, announcement.

FinalPainter.png

The application is divided in two classes. A top level class Painter and a canvas class PaintCanvas, a kind of Morph. In the following section we explain in detail those implementations.

Add a Note

Licensed under Creative Commons BY-NC-SA | Published using Pier |