Package: gtk

Function gtk:scale-new-with-range

Lambda List

gtk:scale-new-with-range (orientation min max step)

Arguments

orientation -- a value of the gtk:orientation enumeration
min -- a number coerced to a double float with the minimum value
max -- a number coerced to a double float with the maximum value
step -- a number coerced to a double float with the step increment, tick size, used with keyboard shortcuts

Return Value

The new gtk:scale widget.

Details

Creates a new scale widget with the given orientation that lets the user input a number between min and max, including min and max, with the increment step. The step argument must be nonzero. It is the distance the slider moves when using the arrow keys to adjust the scale value.

Note that the way in which the precision is derived works best if the step argument is a power of ten. If the resulting precision is not suitable for your needs, use the gtk:scale-digits function to correct it.
 

See also

2024-12-5