More progress on wxMotif, incl. wxTreeCtrl/wxListCtrl beginning to work
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -141,9 +141,15 @@ MyFrame::MyFrame(const wxString& title, int x, int y, int w, int h)
|
||||
CreateStatusBar(3);
|
||||
SetStatusText("", 0);
|
||||
|
||||
#ifdef __WXMOTIF__
|
||||
// For some reason, we get a memcpy crash in wxLogStream::DoLogStream
|
||||
// on gcc/wxMotif, if we use wxLogTextCtl. Maybe it's just gcc?
|
||||
delete wxLog::SetActiveTarget(new wxLogStderr);
|
||||
#else
|
||||
// set our text control as the log target
|
||||
wxLogTextCtrl *logWindow = new wxLogTextCtrl(textCtrl);
|
||||
delete wxLog::SetActiveTarget(logWindow);
|
||||
#endif
|
||||
}
|
||||
|
||||
MyFrame::~MyFrame()
|
||||
|
Reference in New Issue
Block a user