git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11292
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- wxPanel *panel = wxDynamicCast(win->GetParent(), wxPanel);
- if (panel)
- {
- panel->SetLastFocus(win);
- }
+ // notify the parent that we got the focus
+ wxChildFocusEvent eventFocus(win);
+ (void)win->GetEventHandler()->ProcessEvent(eventFocus);
#ifdef HAVE_XIM
if (win->m_ic)
#ifdef HAVE_XIM
if (win->m_ic)
// notify the parent keeping track of focus for the kbd navigation
// purposes that we got it
// notify the parent keeping track of focus for the kbd navigation
// purposes that we got it
- wxChildFocusEvent eventFocus(this);
- (void)GetEventHandler()->ProcessEvent(eventFocus);
+ wxChildFocusEvent eventFocus(win);
+ (void)win->GetEventHandler()->ProcessEvent(eventFocus);
#ifdef HAVE_XIM
if (win->m_ic)
#ifdef HAVE_XIM
if (win->m_ic)
- wxPanel *panel = wxDynamicCast(win->GetParent(), wxPanel);
- if (panel)
- {
- panel->SetLastFocus(win);
- }
+ // notify the parent that we got the focus
+ wxChildFocusEvent eventFocus(win);
+ (void)win->GetEventHandler()->ProcessEvent(eventFocus);
#ifdef HAVE_XIM
if (win->m_ic)
#ifdef HAVE_XIM
if (win->m_ic)
// notify the parent keeping track of focus for the kbd navigation
// purposes that we got it
// notify the parent keeping track of focus for the kbd navigation
// purposes that we got it
- wxChildFocusEvent eventFocus(this);
- (void)GetEventHandler()->ProcessEvent(eventFocus);
+ wxChildFocusEvent eventFocus(win);
+ (void)win->GetEventHandler()->ProcessEvent(eventFocus);
#ifdef HAVE_XIM
if (win->m_ic)
#ifdef HAVE_XIM
if (win->m_ic)