diff --git a/include/wx/simplebook.h b/include/wx/simplebook.h index 4d604bac8e..7e819700fc 100644 --- a/include/wx/simplebook.h +++ b/include/wx/simplebook.h @@ -146,6 +146,14 @@ public: return NO_IMAGE; } + // Override some wxWindow methods too. + virtual void SetFocus() wxOVERRIDE + { + wxWindow* const page = GetCurrentPage(); + if ( page ) + page->SetFocus(); + } + protected: virtual void UpdateSelectedPage(size_t newsel) wxOVERRIDE {