Dear experts,
I try to generate a wxPlotWindow with buttons for zooming etc. in another window. When I code it as below, all buttons are painted on top of each other.
code for 2 windwos displayed in the same wxScrolledWindow follows:
myTextCtrl2 = new wxTextCtrl(
myScrolledWindow,
-1,
wxString("Some text"),
wxPoint(100,000),
wxSize(885,50),
wxTE_MULTILINE | wxTE_RICH);
myPlotWindow = new wxPlotWindow(
myScrolledWindow,
-1,
wxPoint (100,050),
wxSize (885,250),
wxSUNKEN_BORDER |
wxPLOT_BUTTON_ZOOM |
wxPLOT_BUTTON_MOVE |
wxPLOT_BUTTON_ENLARGE
);
when I put the wxPlotWindow as below, everything is fine.
PlotFrame *frame02 = new PlotFrame("Simple Plot Frame", 100, 300, 800, 300);
frame02->Show(TRUE);
SetTopWindow(frame02);
any clues?
all input is welcome,
wolfi
if necessary at all, I'm using wxWindows 2.4.2, DevCpp 4.9.8.5 and W2K |