Stephen Belcher wrote:> I think evt_kill_focus is one of those events you have to define
> inside the class that will be using it, since it doesn''t take an
id
> parameter. If you don''t have a specific class for that one
control
> (which is most of the time), the somewhat-hacky solution I''ve used
in
> the past would look something like:
Yes, see the discussion of the distinction between CommandEvents (which
"bubble" upwards) and others (which are notified to their generator
only).
http://wxruby.rubyforge.org/doc/eventhandlingoverview.html
There is also ChildFocusEvent, which can be used in Panels &c to check
the focus of immediate children.
alex