Properties
Category
English
Similar Topics
Statistics
Comments
3
Participants
3
Subscribers
0
Votes
1
Views
2413
Share
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!
- GeoGebra
- Help
- Partners
-
Contact us
- Feedback & Questions
- This email address is being protected from spambots. You need JavaScript enabled to view it.
- +43 677 6137 2693
© 2023 International GeoGebra Institute
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
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
thanks for both nice ideas, rami and acron!
i'll test them as soon as i can!
Comments have been locked on this page!