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.
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. |
Event handling overview, WindowCreateEvent
Constructor. Unlikely to be required in user code.
[This page automatically generated from the Textile source at 2023-06-13 21:31:39 +0000]