Hey! Thank you for the response. I'm not sure how to give details since my code has been rewritten. My code is written by hand, no GUI builder. The best way I can describe it is it removes all my Connect()'s and add's this.
BEGIN_EVENT_TABLE(PastriesDialog, wxDialog)
EVT_CLOSE(PastriesDialog::OnClose)
EVT_BUTTON(idBtnQuit, PastriesDialog::OnQuit)
EVT_BUTTON(idBtnAbout, PastriesDialog::OnAbout)
END_EVENT_TABLE()
Plus a lot of other stuff at the top like
//helper functions
enum wxbuildinfoformat {
short_f, long_f };
wxString wxbuildinfo(wxbuildinfoformat format)
{
wxString wxbuild(wxVERSION_STRING);
if (format == long_f )
{
#if defined(__WXMSW__)
wxbuild << _T("-Windows");
#elif defined(__WXMAC__)
wxbuild << _T("-Mac");
#elif defined(__UNIX__)
wxbuild << _T("-Linux");
#endif
#if wxUSE_UNICODE
wxbuild << _T("-Unicode build");
#else
wxbuild << _T("-ANSI build");
#endif // wxUSE_UNICODE
}
return wxbuild;
}
I apologise for not including examples at the beginning, I'm kinda confused as to how to explain it. Really a lot of my code isn't recognizable anymore.