wxRuby Documentation Home

Wx::MouseCaptureChangedEvent

An mouse capture changed event is sent to a window that loses its
mouse capture. This is called even if Window::ReleaseCapture
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.

This event is implemented under Windows only.

Derived from

Event

Object

Event table macros

To process this event, use the following event handler macro to direct input to a member
function that takes a MouseCaptureChangedEvent argument.

evt_mouse_capture_changed() { | event | … } Process a EVT_MOUSE_CAPTURE_CHANGED event.

See also

Event handling overview,
Window#capture_mouse,
Window#release_mouse,
Window#get_capture

Methods

MouseCaptureChangedEvent.new

MouseCaptureChangedEvent.new(%(arg-type)Integer% windowId = 0, Window gainedCapture = nil)

Constructor.

ActivateEvent#get_captured_window

Window get_captured_window()

Returns the window that gained the capture, or NULL if it was a non-Widgets window.

[This page automatically generated from the Textile source at 2023-06-13 21:31:34 +0000]