}
}
+ // override some base class virtuals
virtual void ApplyParentThemeBackground(const wxColour& bg)
{ SetBackgroundColour(bg); }
+ virtual bool ProvidesBackground() const { return true; }
protected:
// remove the page and return a pointer to it
virtual bool Destroy();
virtual bool IsTopLevel() const { return true; }
virtual wxSize GetMaxSize() const;
+ virtual bool ProvidesBackground() const { return true; }
// event handlers
void OnCloseWindow(wxCloseEvent& event);
virtual int GetMinWidth() const;
virtual int GetMinHeight() const;
- virtual bool ProvidesBackground() const { return true; }
-
protected:
// handle titlebar button click event
virtual void ClickTitleBarButton(long button);
// as a wxStaticText and wxCheckBox and the background should
// be adapted from a parent window
virtual bool HasTransparentBackground() { return false; }
-
- // to be used with function above: transparent windows get
- // their background from parents that return true here,
- // so this is mostly for wxPanel, wxTopLevelWindow etc.
- virtual bool ProvidesBackground() const { return false; }
// return true if this control can be highlighted when the mouse is over
// it (the theme decides itself whether it is really highlighted or not)
// erase part of the control
virtual void EraseBackground(wxDC& dc, const wxRect& rect);
-
+
// overridden base class methods
// -----------------------------
// the renderer we use
wxRenderer *m_renderer;
-
+
// background bitmap info
wxBitmap m_bitmapBg;
int m_alignBgBitmap;
wxStretch m_stretchBgBitmap;
-
+
// old size
wxSize m_oldSize;
}
wxColour GetBackgroundColour() const;
+ // if the window shouldn't inherit its colour from the parent, override
+ // this function to return true
+ //
+ // this is currently only used by wxMSW and wxUniv but should be useful for
+ // the other ports too
+ virtual bool ProvidesBackground() const { return false; }
+
virtual bool SetForegroundColour(const wxColour& colour);
void SetOwnForegroundColour(const wxColour& colour)
{