Changing focus\activation between wxTopLevelWindows

Vadim Zeitlin vadim at wxwindows.org
Sat Sep 9 16:24:34 PDT 2006


On Wed, 06 Sep 2006 13:20:46 +0100 Luke Hart <lukeh at xara.com> wrote:

LH> Our focus handling rules say that these windows should never have
LH> focus

 You could try to override AcceptsFocus() to return false then, this should
help at least under wxMSW. I'm not sure if wxGTK honours this flag though.

 Another possibility would be to catch mouse clicks on these windows and do
*not* call event.Skip() to prevent the system from giving the focus to
window when clicked by default. This wouldn't help if the window gets the
focus in another way (e.g. by focus follows mouse or Alt-Tab).

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list