Hi.
Ive a little problem using wxLogSysError. It always returns the same error (6 invalid handle). This seems to come from SetDefaultStyle cause if i disable it in the code the error message is right.
This is the code i use:
m_log = new wxTextCtrl( this, -1, "",wxPoint(5,260), wxSize(630,100),wxHSCROLL | wxTE_MULTILINE | wxTE_READONLY | wxTE_RICH2 );
m_logCtrl= wxLog::SetActiveTarget(new wxLogTextCtrl(m_log));
m_log->SetDefaultStyle(wxTextAttr(*wxRED));
wxLogSysError("Text");
Any Hints ?
Player |