class Iup::Val

An interactive control allowing the user to select a value within a limited range.

Example

The following sets up a vertical control with a range from 0 to 10. As the slider is moved, a label’s title is updated to the current value.

Iup::Val.new('vertical') do |v|
  t.max = 10
  v.valuechanged_cb = ->{
    label.title = "VALUE=#{"%0.2f" % v.value}"
    Iup::DEFAULT
  }
end