void gameFrame::OnButton1Click(wxCommandEvent& event) { wxString s=wxT(""); s = TextCtrl1 -> GetValue(); s.ToDouble(&x_1); s = TextCtrl2 -> GetValue(); s.ToDouble(&y_1); s = TextCtrl3 -> GetValue(); s.ToDouble(&a); s = TextCtrl4 -> GetValue(); s.ToDouble(&v0); if ((0ShowModal(); } }