An mouse capture changed event is sent to a window that loses its mouse capture.
This is called even if Window.ReleaseMouse was called by the application code. Handling this event allows an application to cater for unexpected capture releases which might otherwise confuse mouse handling code.
Handlers bound for the following event types will receive a MouseCaptureChangedEvent parameter.
Availability
Only available for MSW.
See also
MouseCaptureLostEvent, Events and Event Handling, Window.CaptureMouse , Window.ReleaseMouse , Window.GetCapture
__init__ | Constructor. |
GetCapturedWindow | Returns the window that gained the capture, or None if it was a non-wxWidgets window. |
An mouse capture changed event is sent to a window that loses its mouse capture.
Possible constructors:
MouseCaptureChangedEvent(windowId=0, gainedCapture=None)
Constructor.
Parameters: |
|
---|
Returns the window that gained the capture, or None if it was a non-wxWidgets window.
Return type: | Window |
---|