wxRuby Documentation Home

Wx::WindowDestroyEvent

This event is sent when a window is destroyed. It is a subclass of
CommandEvent and so it is propagated up the window
hierarchy. This means that frames, panels and other container windows
can listen for the destruction of controls that they contain.

Derived from

CommandEvent

Event

Object

Event hooks

To process a window destruction event, use the evt_window_destroy event hook
to handle the event using a block. The block receives a
WindowDestroyEvent argument.

Note that if you specify your own evt_window_destroy handler, you MUST
call event.skip on the event. This ensures it is
passed on to wxRuby’s internal evt_window_destroy handlers, where it
used in memory management.

evt_destroy(id) { | event | … } Process a EVT_DESTROY event.

See also

Event handling overview, WindowCreateEvent

Methods

WindowDestroyEvent.new

WindowDestroyEvent.new(%(arg-type)Window% win = nil)

Constructor. Unlikely to be required in user code.

[This page automatically generated from the Textile source at 2023-06-09 00:45:33 +0000]