I'm using wxPaintDC to render some lines on a wxPanel surface. I wanted to use wxPaintDC::SetAxisOrientation(true, true) so I could have my origin in the lower left.
Code: Select all
Code snippet from OnPaint():
wxPaintDC* pDc(this);
pDc->SetAxisOrientation(true,true); // testline
pDC->SetPen(*wxWHITE_PEN);
// draws cross with one thicker line
pDC->DrawLine(0, 0, 1000,300);
pDC->DrawLine(0,300, 1000, 0);
pDC->DrawLine(0,301, 1000, 1);
With the testLine I would expect to see my lines, but fixed in lower left. Instead I do not see any lines. I could not figure this out..
I guess I do have a wrong understanding of what the function SetAxisOrientation() is supposed to be doing.
Maybe someone has a quick hint for me.
Thanks