[wxruby-users] lose focus event? *Works in XP ; fails in OS X*

Alex Fenton alex at pressure.to
Sun Jan 20 19:32:42 EST 2008


David Morton wrote:
> I uncommented that log_message call in onFocusGot().  It works in  
> WinXP, but it does not work in OS X.  In XP, I get a popup with that  
> message, but in OS X, nothing happens at all. Eventually the pp is  
> going to be used in XP, but I'd like to develop on OS X.  Any ideas?
>   

http://rubyforge.org/tracker/index.php?func=detail&aid=5532&group_id=35&atid=218

It's a bug I would very much like to fix as I want to do something 
similar to what you describe in my own app. But I suspect it's a 
wxWidgets problem, and haven't got around to writing a C++ test case to 
find out.

As a workaround you could use evt_child_focus, which definitely does 
work on OS X. You cna use get_window to see what child received focus, 
and if you track what the last focus was, you could see when the CB lost 
focus.

alex


More information about the wxruby-users mailing list