Drawing problem on windows
Posted: Thu Jan 12, 2017 9:16 am
Hi all !
I'm trying to draw a map using a class extended from wxPanel and wxDC (like in the sample).
So i have this :
The problem is that it's works perfectly on linux but on windows, when i resize the window i have this :
I really don't know where is the problem because even looking my logs i dont see a problem.
Thanks for your help
I'm trying to draw a map using a class extended from wxPanel and wxDC (like in the sample).
So i have this :
Code: Select all
void GADrawingArea::paintEvent(wxPaintEvent & evt)
{
wxPaintDC dc(this);
render(dc);
}
Code: Select all
void GADrawingArea::render(wxDC& dc)
{
dc.Clear();
int x,y;
GetPosition(&x,&y);
m_winC.update_geometry(x, y, GetSize().GetWidth(), GetSize().GetHeight(),true); // used to update the information of the window contained in m_winc
setScale(HorizontalBottom, "nm", dc); //used to draw h axe
setScale(VerticalLeft, "nm", dc); // used to draw v axe
}
I really don't know where is the problem because even looking my logs i dont see a problem.
Thanks for your help