+void MyFrame::OnTestTextValue(wxCommandEvent& WXUNUSED(event))
+{
+ wxString value = m_textctrl->GetValue();
+ m_textctrl->SetValue(value);
+ if ( m_textctrl->GetValue() != value )
+ {
+ wxLogError(wxT("Text value changed after getting and setting it"));
+ }
+}
+