Focus vs. Activation
Vadim Zeitlin
vadim at wxwidgets.org
Mon Aug 6 10:27:24 PDT 2007
On Mon, 06 Aug 2007 05:57:07 -0700 crjjrc <crjjrc at gmail.com> wrote:
c> > Why doesn't it make sense? For the window to receive the click it must
c> > have focus.
c>
c> It doesn't make sense because the wxMiniFrame is activated, yet I
c> still must click *a button* first. Clicking on the wxMiniFrame
c> anywhere else (title bar, background, etc.) doesn't change the focus
c> at all, and key presses remain ignored. But as soon as I click a
c> button with the mouse, the key events are handled. Furthermore, this
c> was only the case under GTK; both OS X and Windows handled key presses
c> without having to "prime" the wxMiniFrame by clicking on a button.
This looks like a bug in wxMiniFrame under wxGTK, probably due to its
custom handling of mouse clicks which it appears to use for dragging the
window around. I don't know this code at all so I can't say more
unfortunately.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list