Constructors

All constructors initialize the private column fields to Nil and call the Initialize function. The default constructor provides a default size of 100 world-coordinate units in the x and y directions.

      AMonthGraphic::AMonthGraphic()
          : MGraphic(),
          fdateLabel( NIL ),
          fColumn0Label( NIL ),
          fColumn1Label( NIL ),
          fColumn2Label( NIL ),
          fColumn3Label( NIL ),
          fColumn4Label( NIL ),
          fColumn5Label( NIL ),
          fColumn6Label( NIL ),
          fOffscreenImage( NIL ),
          fSizeIndex( 0 );
          fSize( 100,100 )
      {
          Init();
      }
      
      AMonthGraphic::AMonthGraphic(const TGPoint& size, const TGregorianCalendar& newCalendar)
          : MGraphic(),
          fdateLabel( NIL ),
          fColumn0Label( NIL ),
          fColumn1Label( NIL ),
          fColumn2Label( NIL ),
          fColumn3Label( NIL ),
          fColumn4Label( NIL ),
          fColumn5Label( NIL ),
          fColumn6Label( NIL ),
          fSize( size ),
          fCalendar( newCalendar )
      {
          Init();
      }
      
      AMonthGraphic::AMonthGraphic(const AMonthGraphic &other)
          : MGraphic( other ),
          fdateLabel( NIL ),
          fColumn0Label( NIL ),
          fColumn1Label( NIL ),
          fColumn2Label( NIL ),
          fColumn3Label( NIL ),
          fColumn4Label( NIL ),
          fColumn5Label( NIL ),
          fColumn6Label( NIL ),
          fSize( other.fSize )
          fSizeIndex( other.fSizeIndex );
          fCalendar( other.fCalendar );
      {
          Init();
      }

[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