home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / Libraries / Aidan's Class Libraries / Source / Headers / CLStyleBox.h < prev    next >
Encoding:
Text File  |  1997-07-20  |  582 b   |  29 lines  |  [TEXT/CWIE]

  1. //Copyright (c) 1997 Aidan Cully
  2. //All rights reserved
  3.  
  4. #ifndef __STYLEBOX_H
  5. #define __STYLEBOX_H
  6.  
  7. #include <TextEdit.h>
  8. #include "CLWindowDrawer.h"
  9.  
  10. class TStyleBox:
  11.     public TWindowDrawer
  12. {
  13. protected:
  14.     short mResID;
  15.     TEHandle mTE;
  16.     virtual void DrawWindowSelf( TBaseWindow* );
  17.     Point mPos;
  18.     int mHeight;
  19. public:
  20.     TStyleBox( TLayoutBranch*, short );
  21.     virtual void AttachedToWindow( TBaseWindow*, Rect );
  22.     TEHandle GetTE() {return(mTE);};
  23.     Point GetPos() {return(mPos);};
  24.     void ScrollTo( short, short );
  25.     int GetHeight() {return(mHeight);};
  26.     virtual Rect GetLargestSize();
  27. };
  28.  
  29. #endif