diff --git a/include/wx/bookctrl.h b/include/wx/bookctrl.h index 35d7bb45e9..0149ba4d94 100644 --- a/include/wx/bookctrl.h +++ b/include/wx/bookctrl.h @@ -311,6 +311,11 @@ protected: // Lay out controls virtual void DoSize(); + // It is better to make this control transparent so that by default the controls on + // its pages are on the same colour background as the rest of the window. If the user + // prefers a coloured background they can set the background colour on the page panel + virtual bool HasTransparentBackground() wxOVERRIDE { return true; } + // This method also invalidates the size of the controller and should be // called instead of just InvalidateBestSize() whenever pages are added or // removed as this also affects the controller diff --git a/include/wx/choicebk.h b/include/wx/choicebk.h index c56916f903..f32e8d3a0d 100644 --- a/include/wx/choicebk.h +++ b/include/wx/choicebk.h @@ -79,11 +79,6 @@ public: // returns the choice control wxChoice* GetChoiceCtrl() const { return (wxChoice*)m_bookctrl; } - // Override this to return true because the part of parent window - // background between our controlling wxChoice and the page area should - // show through. - virtual bool HasTransparentBackground() wxOVERRIDE { return true; } - protected: virtual void DoSetWindowVariant(wxWindowVariant variant) wxOVERRIDE;