1 Introduction

The computer is simply an instrument whose music is ideas.

Alan Kay

Cuis-Smalltalk offers the possibility to easily design your own Morphs – widgets you can interact with and later integrate in your GUI application. There are three ways to design a custom Morph: an aggregate of existing Morphs, a design from scratch or a combination of the two former approaches.

Building a new Morph with an aggregate of existing Morphs is mainly about laying out Morphs together and letting the aggregated Morphs manage the low-level drawings and input event operations. When there is a need for a custom Morph, this is the path to investigate first. If there is no way to do so, then consider designing a Morph from scratch.

Designing a Morph from scratch requires dealing with its appearance and the handling of input events. For the former, Cuis offers a vector graphics anti-aliased canvas; the latter is done with a mechanism to filter and handle mouse and keyboard events occurring in the scope of the custom Morph.

Let’s start right away with a design from scratch.