00001 #if !defined( __ARSTEXTBOX_H__ ) 00002 #define __ARSTEXTBOX_H__ 00003 00004 namespace Ars 00005 { 00006 00007 class XTextBox : public XLabel { 00008 protected: 00009 00010 XScrollBar *vScrollBar; 00011 00012 vector<std::string> textList; 00013 00014 public: 00018 XTextBox( void ); 00019 00021 ~XTextBox( void ); 00022 00028 virtual void Init( icstring &aStr ); 00029 00030 virtual const bool SetupWindow( const Message &msg ); 00031 00034 virtual void SetWndText( const std::string &sWindowText ); 00035 00036 virtual void DrawBG( void ); 00037 00038 // Object overrides 00040 virtual void Draw(void); 00041 00044 virtual void SetWindowRect( const XRect &WindowRect ); 00045 00046 virtual const bool evValueChange( const CtrlMessage &msg ); 00047 virtual const bool evValueChanging( const CtrlMessage &msg ); 00048 }; 00049 00050 } 00051 #endif