Well i even feel ashamed asking that but i became tired and mad trying searching a method for getting the content from wxTextCtrl....
FACT1: yes i'm a newbi at wxwidget, I just started learning it today....
[SIMPLE] Get content from wxTextCtrl? Topic is solved
Hi!
What exactly do you not understand? It 's hard to answer the question if we don't know the exact problem.IdkxD wrote:i saw the article already but i don't really understand it....
Code: Select all
...
//create a text control.
//this -> parent window
//wxID_ANY -> auto-assign ID
//the text to be shown initially
wxTextCtrl* text = new wxTextCtrl(this,wxID_ANY,"This is the value of the text field");
//get the text and store it in a wxString
wxString str = text->GetValue();
//pop up a message box with the obtained text
wxMessageBox(str);
//set some new text
text->SetValue("Some other text.");
...
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda