[wxPython-dev] strange event IDs for SET_FOCUS and KILL_FOCUS wx2.6 Grid

Robin Dunn robin at alldunn.com
Wed Jan 10 13:59:45 PST 2007


Niki Spahiev wrote:
> Hello,
> 
> Attached program demonstrates anomaly in focus events. Under wx 2.4 
> focus events report top grid window as requested. Under wx 2.6 inner 
> window is reported (name=grid window).

The gridWindow is actually the one that has the focus at all times, 
except when an editor is active, so it is the one that receives the 
events.  It has a handler function that just forwards the event to the 
wxGrid so your bindings will get the event too.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-dev mailing list