Table Of Contents

Previous topic

MouseButton

Next topic

MouseCaptureLostEvent

This Page

phoenix_title MouseCaptureChangedEvent

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.

events Events Emitted by this Class

Handlers bound for the following event types will receive a MouseCaptureChangedEvent parameter.

  • EVT_MOUSE_CAPTURE_CHANGED: Process a wxEVT_MOUSE_CAPTURE_CHANGED event.

Availability

Only available for MSW.


class_hierarchy Inheritance Diagram

Inheritance diagram for class MouseCaptureChangedEvent

Inheritance diagram of MouseCaptureChangedEvent


method_summary Methods Summary

__init__ Constructor.
GetCapturedWindow Returns the window that gained the capture, or None if it was a non-wxWidgets window.

property_summary Properties Summary

CapturedWindow See 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)

Methods



__init__(self, windowId=0, gainedCapture=None)

Constructor.

Parameters:
  • windowId (int) –
  • gainedCapture (Window) –


GetCapturedWindow(self)

Returns the window that gained the capture, or None if it was a non-wxWidgets window.

Return type: Window

Properties



CapturedWindow

See GetCapturedWindow