BitmapButton shows focus erroneously

Jeffrey Barish jeff_barish at earthlink.net
Sat Jun 3 12:04:27 PDT 2006


Robin Dunn wrote:

> Jeffrey Barish wrote:
>> You are right: This change solves the problem with focus.  But now I
>> can't get the button to do anything because it no longer produces
>> EVT_BUTTON. Wait, I wasn't getting EVT_BUTTON in the original version of
>> the test
>> (without the CallAfter) either.  I'm confused because the buttons still
>> work in the actual program even though they go into the metafocus mode.
> 
> This is strange.  Perhaps the native control is checking focus before
> sending of the button event, or something like that.  (As further
> evidence of this being a native behavior, it works fine in wxGTK.)  In
> any case you can just move your SetFocus call to a EVT_BUTTON handler.
> 
I had the same idea after sending my message.  That solution works -- in the
test program, at least.

FYI, "native" in my case means Windows XP.
-- 
Jeffrey Barish





More information about the wxpython-users mailing list