forked from klang-modular/synthapp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
392 B
8 lines
392 B
#include "ccslider.h"
|
|
|
|
CCSlider::CCSlider(wxWindow* parent, wxWindowID id, int value, const wxString& label) : wxPanel(parent) {
|
|
wxBoxSizer* sizer = new wxBoxSizer(wxVERTICAL);
|
|
SetSizer(sizer);
|
|
sizer->Add(new wxSlider(this, id, value, 0, 127, wxDefaultPosition, wxDefaultSize, wxSL_VERTICAL | wxSL_INVERSE), 1, wxEXPAND);
|
|
sizer->Add(new wxStaticText(this, wxID_ANY, label));
|
|
} |