I encountered the problem.
I need the y axis to start from the bottom up, using wxBufferedPaintDC.
Using wxPaintDC is ok.
Code: Select all
void testbuffFrm::testbuffFrmPaint(wxPaintEvent& event)
{
wxPaintDC dc(this);
wxPaintDC dd(okno1);
wxPaintDC de(okno2);
dc.SetDeviceOrigin(0, dc.GetSize().GetHeight()-1);
dc.SetAxisOrientation(true, true);
dc.DrawLine(0, 0, 100, 100);
dc.DrawText("Test Frame", 100, 100);
de.DrawText("Test okno1", 10, 2);
dd.DrawText("Test okno2", 10, 2);
}
Code: Select all
void testbuffFrm::testbuffFrmPaint(wxPaintEvent& event)
{
wxBufferedPaintDC dc(this);
wxPaintDC dd(okno1);
wxPaintDC de(okno2);
dc.SetDeviceOrigin(0, dc.GetSize().GetHeight()-1);
dc.SetAxisOrientation(true, true);
dc.SetBackground(*wxWHITE_BRUSH);
dc.Clear();
dc.DrawLine(0, 0, 100, 100);
dc.DrawText("Test Frame", 100, 100);
de.DrawText("Test okno1", 10, 2);
dd.DrawText("Test okno2", 10, 2);
}
Win8.
wxDev-C++ 7.4.2.569