From 277f2e527e33de039146ab94358ffec9c98f6112 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Sat, 27 Jul 2002 20:13:33 +0000 Subject: [PATCH] Added DoSetSize and DoMoveWindow to generic wxStaticLine. Now it works with sizers. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/generic/statline.h | 6 +++++- src/generic/statline.cpp | 11 +++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/include/wx/generic/statline.h b/include/wx/generic/statline.h index 5d3dafa675..67efb49f6c 100644 --- a/include/wx/generic/statline.h +++ b/include/wx/generic/statline.h @@ -50,7 +50,11 @@ public: // will want to return the main widget for m_statbox // WXWidget GetMainWidget() const; - + + // override wxWindow methods to make things work + virtual void DoSetSize(int x, int y, int width, int height, + int sizeFlags = wxSIZE_AUTO); + virtual void DoMoveWindow(int x, int y, int width, int height); protected: // we implement the static line using a static box wxStaticBox *m_statbox; diff --git a/src/generic/statline.cpp b/src/generic/statline.cpp index 964385982f..cebd4a9da8 100644 --- a/src/generic/statline.cpp +++ b/src/generic/statline.cpp @@ -65,3 +65,14 @@ WXWidget wxStaticLine::GetMainWidget() const { return m_statbox->GetMainWidget(); } + +void wxStaticLine::DoSetSize(int x, int y, int width, int height, + int sizeFlags = wxSIZE_AUTO) +{ + m_statbox->SetSize(x, y, width, height, sizeFlags); +} + +void wxStaticLine::DoMoveWindow(int x, int y, int width, int height) +{ + m_statbox->SetSize(x, y, width, height); +} -- 2.45.2