Adopting graphics

Figure 131 shows that 2-D graphics are added to a group with the AdoptFirst and AdoptLast functions. AdoptFirst puts the adopted graphic into the first position in the group; AdoptLast puts the adopted graphic into the last position in the group. You nest groups by adopting a TGraphicGroup instance, which is derived from MGraphic. There is no limit to how deep you can nest groups, but the same graphic cannot be adopted by more than one group.


      TGraphicGroup::AdoptFirst( MGraphic& graphic );
      TGraphicGroup::AdoptLast( MGraphic& graphic );

[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