Werner
2014-06-12 16:33:37 UTC
Hi,
I had a go at this.
- replace all the wx.ClientDC with wx.MemoryDC and a buffer
- in ShapeCanvas.OnSize the buffer is created based on window size
- a ShapeCanvas.Draw was added which updates the buffer with the current
diagram
- in ShapeCanvas.OnPaint a BufferedPaintDC is used to draw the buffer to
the screen
Problems I could not solve yet:
- outline when moving doesn't show or I get tons of them if change
Shape.OnDrawOutline to draw to ClientDC (I know I shouldn't but ..)
- when moving an object it only moves after another click
Anyone has some hints on where I should look for the above two problems?
Will tomorrow clean up the code changes and do a PR for all this, even
if I have not resolved the two problems.
Werner
I had a go at this.
- replace all the wx.ClientDC with wx.MemoryDC and a buffer
- in ShapeCanvas.OnSize the buffer is created based on window size
- a ShapeCanvas.Draw was added which updates the buffer with the current
diagram
- in ShapeCanvas.OnPaint a BufferedPaintDC is used to draw the buffer to
the screen
Problems I could not solve yet:
- outline when moving doesn't show or I get tons of them if change
Shape.OnDrawOutline to draw to ClientDC (I know I shouldn't but ..)
- when moving an object it only moves after another click
Anyone has some hints on where I should look for the above two problems?
Will tomorrow clean up the code changes and do a PR for all this, even
if I have not resolved the two problems.
Werner
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.