Menu

#5 Manage CaptureMouse in the canvas

open
nobody
None
5
2010-11-03
2010-11-03
No

I manage myself CaptureMouse / ReleaseMouse, and handle wxMouseCaptureLostEvent. I think it would be better to do it directly in the wxSFShapeCanvas class (during OnLoftDown / OnLeftUp).

Discussion

  • Michal Bližňák

    I think it would be better to not handle it directly in wxSF but let the user to decide where the functionality is really needed or not. Moreover, the functionality is available on Windows only (more exactly wxMouseCaptureLostEvent is emitted under Windows only).

     
  • Jérémie Fouché

    OK

    It's not really a problem as we can manage this in the inherited canvas class. I did it, and it works.

     
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.