diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-02-19 00:01:16 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-02-19 00:01:16 +0000 |
| commit | 6727f7e47db1ad7b0a21f2047e8ed3b4e1968b2a (patch) | |
| tree | b2fff4856a7cb538b29f7deb9d38b9aeac8578b5 /src | |
| parent | 1c3794115618500ef245c11483b22590886d4b0b (diff) | |
Vertically-scroll content panels if required.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/content_sub_panel.cc | 3 | ||||
| -rw-r--r-- | src/wx/content_sub_panel.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/wx/content_sub_panel.cc b/src/wx/content_sub_panel.cc index 674b30369..781d3b330 100644 --- a/src/wx/content_sub_panel.cc +++ b/src/wx/content_sub_panel.cc @@ -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); } diff --git a/src/wx/content_sub_panel.h b/src/wx/content_sub_panel.h index 540ccb240..44d5ee1a5 100644 --- a/src/wx/content_sub_panel.h +++ b/src/wx/content_sub_panel.h @@ -29,7 +29,7 @@ class ContentPanel; class Content; class DCPContent; -class ContentSubPanel : public wxPanel +class ContentSubPanel : public wxScrolledWindow { public: ContentSubPanel (ContentPanel *, wxString); |
