-void wxPanel::OnFocus(wxFocusEvent& event)
-{
- if ( m_winLastFocused )
- {
- // it might happen that the window got reparented...
- if ( m_winLastFocused->GetParent() != this )
- m_winLastFocused = (wxWindow *)NULL;
- else
- m_winLastFocused->SetFocus();
- }
- else
- event.Skip();
-}