Visual Programming User Guide : Building parts : Building primitive visual parts
Building primitive visual parts
Primitive visual parts are user interface components, such as windows, forms, push buttons, and scales. For most controls, three objects cooperate to make the part complete. These objects are the part itself, the common widget, and the platform widget. Most controls follow this three-layered approach, where each layer has a special role:
The Part layer provides a high-level interface for connecting the control to other parts.
The Common Widget layer gives part developers a uniform, portable interface, hiding operating system-specific functions.
The Platform Widget layer gives VA Smalltalk access to the native control for each operating system, instead of emulating the control's behavior.
In this section, you will build a part that displays graphical shapes, like circles, rectangles, and triangles. Although the shape part doesn't really do anything, it is useful for making your user interfaces more attractive. This part is more complicated to build than the ones you have learned about so far, because it requires a new Common Widget class.
You will also learn new techniques for customizing your part's settings view, pop-up menu, and other Composition Editor characteristics.
Last modified date: 01/29/2015