My current approach is writing this in the wxFrame constructor:
Code: Select all
myPanel->Bind(wxEVT_COMMAND_BUTTON_CLICKED,&MyFrame::OnButtonPress,this,7000,7030);
Code: Select all
myPanel->Bind(wxEVT_COMMAND_BUTTON_CLICKED,&MyFrame::OnButtonPress,this,7000,7030);
Code: Select all
myButton->Bind(wxEVT_COMMAND_BUTTON_CLICKED,&MyFrame::OnButtonPress,this)