noreply at rubyforge.org
2008-Sep-12 14:49 UTC
[wxruby-development] [ wxruby-Bugs-21933 ] warning: Unmapped event type 10092
Bugs item #21933, was opened at 2008-09-12 10:49
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=21933&group_id=35
Category: Missing API call
Group: current
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: warning: Unmapped event type 10092
Initial Comment:
Hello,
I recently upgraded to current and now I''m getting this warning:
`warning: Unmapped event type 10092`
By using the following code:
`require ''wx''; a=Wx.constants.grep(/evt/i).find { |x|
(eval(''Wx::'' + x) =10092) }; puts a`
This turns out to be `EVT_NAVIGATION_KEY`, and this warning is printed when I
push the tab key to get around in my application.
I fixed the warning by doing:
`Wx::EvtHandler::EVENT_TYPE_CLASS_MAP[10092] = Wx::KeyEvent`
Though I''ve been informed on ruby-talk that the correct class would be
`Wx::NavigationKeyEvent`, which doesn''t currently exist in WxRuby.
Just as an aside, I use Windows Vista at work (where I code) and as of a Windows
Update yesterday, my WxRuby applications all have the Vista theme.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=21933&group_id=35