[wxPython-dev] strange event IDs for SET_FOCUS and KILL_FOCUS
wx2.6 Grid
Niki Spahiev
niki at vintech.bg
Thu Jan 11 01:20:11 PST 2007
Robin Dunn wrote:
> 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.
I added event.Skip() to focus handler but got nothing. How should i
change this sample to get real grid ID?
There is no problem in wx 2.4. This looks like bug in wx-2.6 and 2.8
regards,
Niki Spahiev
More information about the wxpython-dev
mailing list