wx.MouseCaptureChangedEvent¶
A mouse capture changed event is sent to a window that loses its mouse capture.
This is called even if wx.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.
Events Emitted by this Class¶
Handlers bound for the following event types will receive a wx.MouseCaptureChangedEvent parameter.
EVT_MOUSE_CAPTURE_CHANGED: Process a
wxEVT_MOUSE_CAPTURE_CHANGEDevent.
Availability
Only available for MSW.
See also
wx.MouseCaptureLostEvent, Events and Event Handling, wx.Window.CaptureMouse , wx.Window.ReleaseMouse , wx.Window.GetCapture
Class Hierarchy¶
Methods Summary¶
Constructor. |
|
Returns the window that gained the capture, or |
Properties Summary¶
Class API¶
- class wx.MouseCaptureChangedEvent(Event)¶
Possible constructors:
MouseCaptureChangedEvent(windowId=0, gainedCapture=None) -> None
A mouse capture changed event is sent to a window that loses its mouse capture.
Methods¶
- __init__(self, windowId=0, gainedCapture=None)¶
Constructor.
- Parameters:
windowId (wx.WindowID)
gainedCapture (wx.Window)
- Return type:
None
- GetCapturedWindow(self)¶
Returns the window that gained the capture, or
Noneif it was a non-wxWidgets window.- Return type:
Properties¶
- CapturedWindow¶