BEGIN_EVENT_TABLE(ButtonFrame, wxFrame) EVT_BUTTON(IS_SAY_HELLO, ButtonFrame::OnSayHello) END_EVENT_TABLE()
wxButton* hello_button = new wxButton(this, IS_SAY_HELLO, "Say Hello");
void ButtonFrame::OnSayHello(wxCommandEvent& event)
{
text->AppendText("Hello, World!\n");
}