00001 #include "edit_ctrl.h" 00002 00003 namespace crs { 00004 00005 text_ctrl::text_ctrl( base_control *Parent, window_events *Events, 00006 unsigned int Left, unsigned int Top, unsigned int Width, unsigned int Height ): 00007 focused_ctrl( Parent, Events, Left, Top, Width, Height ), 00008 text( this, &text_ctrl::getText, &text_ctrl::setText_ ) { 00009 } 00010 00011 const std::string &text_ctrl::getText() { 00012 doGetText(); 00013 return mText; 00014 } 00015 00016 void text_ctrl::setText_( const std::string &Text ) { 00017 doSetText( Text ); 00018 mText = Text; 00019 mCursorpos = mText.size() + 1; 00020 } 00021 00022 void text_ctrl::doGetText() { 00023 } 00024 00025 void text_ctrl::doSetText( const std::string &) { 00026 } 00027 00028 }