Copy all of the slider states when resizing.
This commit is contained in:
parent
6428fc543a
commit
aad23131fe
2 changed files with 7 additions and 2 deletions
|
@ -835,8 +835,12 @@ void display::create_buttons()
|
|||
}
|
||||
|
||||
gui::slider* s_prev = find_slider(s.id());
|
||||
//TODO also copy the other states.
|
||||
if(s_prev) s.enable(s_prev->enabled());
|
||||
if(s_prev) {
|
||||
s.set_max(s_prev->max_value());
|
||||
s.set_min(s_prev->min_value());
|
||||
s.set_value(s_prev->value());
|
||||
s.enable(s_prev->enabled());
|
||||
}
|
||||
|
||||
slider_work.push_back(s);
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ public:
|
|||
|
||||
int value() const;
|
||||
int max_value() const;
|
||||
int min_value() const { return min_; }
|
||||
|
||||
bool value_change();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue