E
Eric Will
[Note: parts of this message were removed to make it a legal post.]
Hello,
I'm not sure what's going on with the latest WxRuby. Yesterday, my Vista
machine at work did an update and suddenly all of my WxRuby applications had
the Vista theme. That was nice, but they were also all crashing just by
moving the mouse around them or resizing the window. So, I checked to see if
WxRuby had a update, and so it did.
Updating seems to have fixed the crashing; however, after the update I
started getting this error:
warning: Unmapped event type 10092
So, after writing this little one-liner to figure out which event name that
was:
require 'wx'; a=Wx.constants.grep(/evt/i).find { |x| (eval('Wx::' + x) ==
10092) }; puts a
I come up with EVT_NAVIGATION_KEY. This warning was getting spit out
whenever someone hits the tab key. As it turns out, for some reason they
"forgot" to map EVT_NAVIGATION_KEY to an actual Wx::Event class
in Wx::EvtHandler::EVENT_TYPE_CLASS_MAP. After checking for some obvious
class by doing `Wx::constants.grep /Event/` I can't figure out which one it
should be mapped to. I have fixed the warning by doing this:
Wx::EvtHandler::EVENT_TYPE_CLASS_MAP[10092] = Wx::Event
But obviously that won't fix the event for anyone that relies on it (or at
least, I don't think it will). So ultimately, I'm wondering if anyone out
there knows which Wx::Event class this should be mapped to.
Thanks.
Hello,
I'm not sure what's going on with the latest WxRuby. Yesterday, my Vista
machine at work did an update and suddenly all of my WxRuby applications had
the Vista theme. That was nice, but they were also all crashing just by
moving the mouse around them or resizing the window. So, I checked to see if
WxRuby had a update, and so it did.
Updating seems to have fixed the crashing; however, after the update I
started getting this error:
warning: Unmapped event type 10092
So, after writing this little one-liner to figure out which event name that
was:
require 'wx'; a=Wx.constants.grep(/evt/i).find { |x| (eval('Wx::' + x) ==
10092) }; puts a
I come up with EVT_NAVIGATION_KEY. This warning was getting spit out
whenever someone hits the tab key. As it turns out, for some reason they
"forgot" to map EVT_NAVIGATION_KEY to an actual Wx::Event class
in Wx::EvtHandler::EVENT_TYPE_CLASS_MAP. After checking for some obvious
class by doing `Wx::constants.grep /Event/` I can't figure out which one it
should be mapped to. I have fixed the warning by doing this:
Wx::EvtHandler::EVENT_TYPE_CLASS_MAP[10092] = Wx::Event
But obviously that won't fix the event for anyone that relies on it (or at
least, I don't think it will). So ultimately, I'm wondering if anyone out
there knows which Wx::Event class this should be mapped to.
Thanks.