Vertically-scroll content panels if required.
authorCarl Hetherington <cth@carlh.net>
Sun, 19 Feb 2017 00:01:16 +0000 (00:01 +0000)
committerCarl Hetherington <cth@carlh.net>
Sun, 19 Feb 2017 00:01:16 +0000 (00:01 +0000)
src/wx/content_sub_panel.cc
src/wx/content_sub_panel.h

index 674b3036976b2f68855739955d725fec6fa5e45c..781d3b3309b64cc35fb611fd11bbc2423bc560bf 100644 (file)
@@ -32,11 +32,12 @@ using std::string;
 using boost::shared_ptr;
 
 ContentSubPanel::ContentSubPanel (ContentPanel* p, wxString name)
-       : wxPanel (p->notebook(), wxID_ANY)
+       : wxScrolledWindow (p->notebook(), wxID_ANY)
        , _parent (p)
        , _sizer (new wxBoxSizer (wxVERTICAL))
 {
        p->notebook()->AddPage (this, name, false);
+       SetScrollRate (-1, 8);
        SetSizer (_sizer);
 }
 
index 540ccb24075f526881e04d103bb6a62c56e8c49b..44d5ee1a587e6c73afa73bdcb5e8bd9cd598a372 100644 (file)
@@ -29,7 +29,7 @@ class ContentPanel;
 class Content;
 class DCPContent;
 
-class ContentSubPanel : public wxPanel
+class ContentSubPanel : public wxScrolledWindow
 {
 public:
        ContentSubPanel (ContentPanel *, wxString);