Attribute bundles

The TGraphicGroup constructors let you instantiate a group with an attribute bundle. When no attribute bundle is specified in the call to the constructor, the attribute bundle is initialized to Nil.

    TGraphicGroup( TGrafBundle* adoptedBundle = NIL );
In addition, each graphic adopted into a group can have its own attribute bundle. The attribute bundle of the graphic overrides the attribute bundle for the group into which the graphic is adopted.

In the wagon example, the wagon group has no attribute bundle so it has a default bundle. When the wagon body is adopted into the wagon group, it has a bundle that specifies fill and frame attributes that override the default bundle of the wagon group. When the wagon wheels are adopted into the wagon group, they also have attribute bundles that specify fill and frame attributes that override the default bundle of the wagon group. Because the wagon body and wagon wheel groups are at the same level in the hierarchy (see Figure 129), their bundles have no affect on each other.


[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