home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Applications / Conic Sections 0.9.2 / Sources / AboutContent.cpp next >
Encoding:
Text File  |  1997-07-20  |  786 b   |  37 lines  |  [TEXT/CWIE]

  1. //Copyright (c) 1997 Aidan Cully
  2. //All rights reserved
  3.  
  4. #include "AboutContent.h"
  5. #include "ScrollTextBox.h"
  6. #include "DismissButton.h"
  7. #include "CLOutline.h"
  8.  
  9. TAboutContent::TAboutContent( TLayoutBranch *super ):
  10.     TLayoutBranch( super )
  11. {
  12. }
  13.  
  14. void TAboutContent::BuildChildren()
  15. {
  16.     TLayoutLeaf *ch;
  17.     Rect contRect= mContentRect;
  18.  
  19.     contRect.bottom-= 30;
  20.     ch= new TScrollStyleBox( this, 128 );
  21.     ch->Init();
  22.     AddChild( ch, contRect, 0 );
  23.     contRect.top= contRect.bottom+5;
  24.     contRect.bottom+= 30;
  25.     contRect.right-= 15;
  26.     contRect.left= contRect.right-50;
  27.     ch= new TDismissButton( this, "\pOK" );
  28.     ch->Init();
  29.     ch= new TOutline( this, ch );
  30.     ch->Init();
  31.     AddChild( ch, contRect, 0 );
  32. }
  33.  
  34. void TAboutContent::CalcMouseMove( Point pt, RgnHandle rgn )
  35. {
  36.     TLayoutBranch::CalcMouseMove( pt, rgn );
  37. }