Design notes

Component reusability

The CommonPoint component architecture encourages design of components like this one, which are small, well-defined, and reusable. Because this begins with a general polymorphic data type (MGraphic), any other program that needs to display a graphic in the form of a general component can reuse this subsystem.

The object-oriented frameworks permit this ease of reuse by simplifying the interface to general data types.

Non-model drag and drop

Most examples of drag and drop show dragging TModelScrapItem holding an embedded component. This is great for most component-based programs, but the graphic document subsystem illustrates an alternative when you simply want to distribute graphics. For example, you can use TScrapItemOn<MGraphic> to drag and accept graphics which can be caught by any accepting framework such as editable text. To see this in action, drag a graphic off the WebRunner Sample to Taligent Chat's window to insert a graphic into a discussion.


[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