Constructor implementation

This implementation shows the portion of the constructor that creates the wagon group and stores it in fWagon.

          ~THelloWorld( GUIBundle* b ) :
              TDocumentComponentView( b )
          {
              CheckForInitialize();
              SetAllocatedArea( TGRect( 0,0, 1000, 1000 ) );
      
          //The code to create the group attribute bundles, wagonAwayWheels, 
          //wagonBody, and wagonTowardWheels precedes the wagon group code to follow.
      
              fWagon = new TGraphicGroup();
      
              fWagon->AdoptFirst( wagonAwayWheels );
              fWagon->AdoptLast( wagonBody );
              fWagon->AdoptLast( wagonTowardWheels );
          }

[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