Search code examples
c++wxwidgets

wxTextCtrl change value


my partner and I have been searching for ways to load a value into a wxTextCtrl box and have had no success. Are you aware of any tricks that can help assign a value to it for example after clicking a button? Any help will be appreciated.


Solution

  • wxTextCtrl * myCtrl = new wxTextCtrl(this,-1)
    wxString value;
    ...
    myCtrl->ChangeValue( value );