Add basic slider control

This commit is contained in:
Henrik Rydgard committed 2013-07-18 10:25:30 +02:00
1 parent 07feef3f44
commit cd8987b33b
4 files changed
+81 -1

No files matched your search

+6
View File
@@ -108,3 +108,9 @@ UI::EventReturn ListPopupScreen::OnListChoice(UI::EventParams &e) {
void ListPopupScreen::OnCompleted() {
callback_(adaptor_.GetSelected());
}
void SliderPopupScreen::CreatePopupContents(UI::ViewGroup *parent) {
using namespace UI;
slider_ = parent->Add(new Slider(value_, minValue_, maxValue_));
}