Hi, could you elaborate more on first solution? In submitted code
pMyLog = 0;
#if LOGGING
wxWindow* pcbWindow = frame;
/*wxLogWindow**/ pMyLog = new wxLogWindow(pcbWindow,"wxScroll Log");
wxLog::SetActiveTarget(pMyLog);
wxLogMessage("Logging wxScroll");
pMyLog->Flush();
pMyLog->GetFrame()->Move(20,20);
#endif
what is 'frame'?. How do you get that pointer?.
Thank you
From the wxWidgets documentation
::wxGetActiveWindow
wxWindow * wxGetActiveWindow()
Gets the currently active window (implemented for MSW and GTK only currently, always returns NULL in the other ports).
Include files
<wx/window.h>
or
::wxGetTopLevelParent
wxWindow * wxGetTopLevelParent(wxWindow *win)
Returns the first top level parent of the given window, or in other words, the frame or dialog containing it, or NULL.
Include files
<wx/window.h>
Most likely, you just created a frame from your wxApp. Use that pointer.
Look at the samples in wxWidgets.
Use the CodeBlocks wizard to create a wxWidgets graphics program.
It creates a wxApp and a wxFrame for you.