Sliders
Extends: SLIDER > CONTROL > WIDGET
A slider offers aslider that can be dragged to change its value. It offers a few extra properties on top of the CONTROL properties.
INCREMENT
Part of: SLIDER
Controls the increment value when the slider is dragged.
Syntax
GPROP "SLIDER "INCREMENT
PPROP "SLIDER "INCREMENT value
Description
INCREMENT gets or sets the value that Logo adds to the slider value when the slider is dragged one pixel.
Examples
DRAW ; Drop a SLIDER widget from the Toolbox > Controls SLIDER dropped GPROP “SLIDER “INCREMENT Result: 1
MAXIMUM
Part of: SLIDER
Controls the maximum value of the slider.
Syntax
GPROP "SLIDER "MAXIMUM
PPROP "SLIDER "MAXIMUM value
Description
MAXIMUM gets or sets the maximum value that the slider can be set to.
Examples
DRAW ; Drop a SLIDER widget from the Toolbox > Controls SLIDER dropped GPROP “SLIDER “MAXIMUM Result: 100
MINIMUM
Part of: SLIDER
Controls the minimum value of the slider.
Syntax
GPROP "SLIDER "MINIMUM
PPROP "SLIDER "MINIMUM value
Description
MINIMUM gets or sets the minimum value that the slider can be set to.
Examples
DRAW ; Drop a SLIDER widget from the Toolbox > Controls SLIDER dropped GPROP “SLIDER “MINIMUM Result: 0
VALUE
Part of: SLIDER
Sets or gets the current value of a slider.
Syntax
GPROP "SLIDER "VALUE
PPROP "SLIDER "VALUE value
Description
VALUE reports or sets the current value of the slider. If setting a value, the slider adjusts it so it is between SLIDER/MINIMUM and MAXIMUM, and sets the slider’s knob accordingly.
Examples
DRAW ; Drop a SLIDER widget from the Toolbox > Controls SLIDER dropped GPROP “SLIDER “VALUE Result: 0