Here is the member function that contains my dialog:
Code: Select all
void MainWindow::OnHelp(wxMenuEvent& event)
{
wxDialog help(this, -1, _T("Help"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE);
help.SetIcon(ICON1);
wxTextCtrl textarea(help, -1, wxEmptyString);
help.ShowModal();
help.Destroy();
}
In member function `void MainWindow::OnHelp(wxMenuEvent&)':
error: no matching function for call to `wxTextCtrl::wxTextCtrl
(wxDialog&, int, const wxChar*&)'
textctrl.h:278: note: candidates are: wxTextCtrl:
:wxTextCtrl(const wxTextCtrl&)
textctrl.h:29: note: wxTextCtrl::
wxTextCtrl(wxWindow*, wxWindowID, const wxString&, const wxPoint&, const wxSize&
, long int, const wxValidator&, const wxString&)
textctrl.h:21: note: wxTextCtrl::
wxTextCtrl()