Set focus to wxSimplebook contents when setting focus to it

This is more expected than simply doing nothing, as happened until now.
This commit is contained in:
Vadim Zeitlin
2018-01-18 22:58:34 +01:00
parent a1cf0e1cd4
commit c6e445d40c

View File

@@ -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
{