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:
@@ -146,6 +146,14 @@ public:
|
|||||||
return NO_IMAGE;
|
return NO_IMAGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Override some wxWindow methods too.
|
||||||
|
virtual void SetFocus() wxOVERRIDE
|
||||||
|
{
|
||||||
|
wxWindow* const page = GetCurrentPage();
|
||||||
|
if ( page )
|
||||||
|
page->SetFocus();
|
||||||
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void UpdateSelectedPage(size_t newsel) wxOVERRIDE
|
virtual void UpdateSelectedPage(size_t newsel) wxOVERRIDE
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user