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).
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).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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).
OK
It's not really a problem as we can manage this in the inherited canvas class. I did it, and it works.