Menu

#2 Refresh missing in OnMouseMove in wxShapeCanvas

open
nobody
None
5
2010-06-09
2010-06-09
foldink
No

Hi,

I was making a new line shape and I had refresh problems in the DrawCompleteLine method, it was missing a refresh on the OnMouseMove to make it display properly when dragging some shapes.
The patch is here if required

Regards,
Nicolas

Discussion

  • foldink

    foldink - 2010-06-09
     
  • Michal Bližňák

    In my opinion this is not an ideal solution because it forces shape canvas to be refreshed all the time during a mouse movement (not only if the refresh is really needed). This could slow down application if ran on slow machine/graphics subsystem. The better solution could be to found out the exact reason why your shape wasn't refreshed correctly. Can you provide me with your custom shape class?

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.