Defining new attribute classes

If you need an attribute not already provided in the CommonPoint application system, you have to derive a new class from a different attribute base class.

The example in this section defines two different types of related attributes, Thickness and Dimension, that share a category named Paper. You can accomplish this by defining a static global in the implementation file shared by all of these attributes. It is not necessary to export the category, so it need not appear in the interface.

    const TToken gPaperCategory = TToken(TStandardText("Paper Category"));

[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