slider Max or Min

nidzela shared this idea 6 years ago
Answered

hi,

i'm trying to update a certain formula with GeoGebraScript.

in my formula there's a certain factor 100, that's because it is the maximum value of a slider.


i'd like to try some efects with new max values of the slider. but i don't want to be changing the formula everytime...

so it would be nice that you could refer to it as Max[<slider>], seems an easy way to avoid too Scripting.


thanks!

Comments (3)

photo
1

Hi


You can define a variable "maxSlider" and set this variable in the property "max" in the slider (instead of a numerical value).

Then you change "maxSlider" (for example with the slider "maxSlider")

Then the property "max" in slider is also change.


Raymond

photo
1

Slider[ <Min>, <Max>, <Increment>, <Speed>, <Width>, <Is Angle>, <Horizontal>, <Animating>, <Random> ] is a command you can use in scripts. Variables can be set for each of the arguments within reason...


Possibly this will assist you.


Tony

photo
1

thanks for both nice ideas, rami and acron!

i'll test them as soon as i can!

© 2021 International GeoGebra Institute