00001 #include "static_text.h" 00002 00003 namespace crs { 00004 00005 static_text::static_text( base_control *Parent, const std::string Caption, const unsigned int Left, const unsigned 00006 int Top, const unsigned int Width ): 00007 base_control( Parent, 0, Left, Top, Width, 1 ), 00008 mCaption(Caption), 00009 caption( this, &static_text::getCaption, &static_text::setCaption ) { 00010 mVisible = true; 00011 } 00012 00013 const std::string &static_text::getCaption() { 00014 return mCaption; 00015 } 00016 00017 void static_text::setCaption( const std::string &Caption ) { 00018 mCaption = Caption; 00019 } 00020 00021 void static_text::draw() { 00022 buffer.fill( ' ' ); 00023 setText( mCaption, 0, 0 ); 00024 } 00025 00026 } 00027