.. include:: headings.inc .. _MouseCaptureChangedEvent: ========================================================================================================================================== |phoenix_title| **MouseCaptureChangedEvent** ========================================================================================================================================== An mouse capture changed event is sent to a window that loses its mouse capture. This is called even if :meth:`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. .. _MouseCaptureChangedEvent-events: |events| Events Emitted by this Class ===================================== Handlers bound for the following event types will receive a :ref:`MouseCaptureChangedEvent` parameter. - EVT_MOUSE_CAPTURE_CHANGED: Process a ``wxEVT_MOUSE_CAPTURE_CHANGED`` event. .. availability:: Only available for MSW. .. seealso:: :ref:`MouseCaptureLostEvent`, :ref:`Events and Event Handling `, :meth:`Window.CaptureMouse` , :meth:`Window.ReleaseMouse` , :meth:`Window.GetCapture` | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **MouseCaptureChangedEvent** .. raw:: html

Inheritance diagram of MouseCaptureChangedEvent

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~MouseCaptureChangedEvent.__init__` Constructor. :meth:`~MouseCaptureChangedEvent.GetCapturedWindow` Returns the window that gained the capture, or ``None`` if it was a non-wxWidgets window. ================================================================================ ================================================================================ | |property_summary| Properties Summary ===================================== ================================================================================ ================================================================================ :attr:`~MouseCaptureChangedEvent.CapturedWindow` See :meth:`~MouseCaptureChangedEvent.GetCapturedWindow` ================================================================================ ================================================================================ | |api| Class API =============== .. class:: MouseCaptureChangedEvent(Event) An mouse capture changed event is sent to a window that loses its mouse capture. **Possible constructors**:: MouseCaptureChangedEvent(windowId=0, gainedCapture=None) .. method:: __init__(self, windowId=0, gainedCapture=None) Constructor. :param `windowId`: :type `windowId`: int :param `gainedCapture`: :type `gainedCapture`: Window .. method:: GetCapturedWindow(self) Returns the window that gained the capture, or ``None`` if it was a non-wxWidgets window. :rtype: :ref:`Window` .. attribute:: CapturedWindow See :meth:`~MouseCaptureChangedEvent.GetCapturedWindow`