ds2k5
1
Hello,
I wanna show the VALUE of the slider in the title.
But did not have success.
Sorry I am noob!
let mut slider = Slider::new(30, 110, 20, 50, "WPM: ");
slider.set_range(5.0, 40.0);
slider.set_value(25.0);
slider.set_tooltip("adjust WPM (Words per minute)");
if slider.changed() {
slider.set_label(&format!("WPM: {}", slider.value() as i32));
}
How to do it right ?
conqp
2
You might get better feedback here, if you’d
- Use a translation tool, such as `deepl` if you don’t speak English well.
- Put more information about the actual problem in your posts, such as the expected and actual results as well as potential error messages.
- Provide an MRE so that others can reproduce your issue at hand.
system
Closed
3
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.