added wxRenderer::DrawTextBorder() to deal with GTK+ text borders

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-11-24 18:59:17 +00:00
parent 6378b5268d
commit eafd9d4f24
7 changed files with 108 additions and 45 deletions

View File

@@ -250,7 +250,7 @@ public:
// override this to take into account our scrollbar-less scrolling
virtual void CalcUnscrolledPosition(int x, int y, int *xx, int *yy) const;
// set the right colours
// set the right colours and border
virtual bool IsContainerWindow() const { return TRUE; }
virtual wxBorder GetDefaultBorder() const { return wxBORDER_SUNKEN; }
@@ -271,6 +271,8 @@ protected:
void DoDrawTextInRect(wxDC& dc, const wxRect& rectUpdate);
// override base class methods
virtual void DoDrawBorder(wxDC& dc, const wxRect& rect);
virtual void DoDraw(wxControlRenderer *renderer);
// calc the size from the text extent