I'm italian, so i'm sorry for my English.
I did a program that add the string written in the first form at the second one and show the result in the third form when the button is pressed.
But there is a little problem, to do this i used this function:
Code: Select all
WxButton1 = new wxButton(this, LboxTest_Add, wxT("Somma"), wxPoint(170,124), wxSize(75,25), 0, wxDefaultValidator);
WxEdit2 = new wxTextCtrl(this, LboxTest_AddText, wxT("Num 1"), wxPoint(20,30), wxSize(121,21), 0, wxDefaultValidator );
WxEdit1 = new wxTextCtrl(this, ID_WXEDIT1, wxT(""), wxPoint(20,80), wxSize(121,21), 0, wxDefaultValidator );
WxEdit3 = new wxTextCtrl(this, ID_WXEDIT3, wxT("Num 2"), wxPoint(20,55), wxSize(121,21), 0, wxDefaultValidator );
}
void Project1Frm::Project1FrmClose(wxCloseEvent& event)
{
Destroy();
}
void Project1Frm::OnButtonAdd(wxCommandEvent& WXUNUSED(event))
{
wxString s = WxEdit2->GetValue();
wxString a = WxEdit3->GetValue();
WxEdit1->AppendText(s+a);
}
Can u help me?
i searched on google and on the ufficial wx reference, but i didn't find anything usefull...
please help me...
thanks and sorry for my English...