Difference between revisions of "Tutorial:Introduction to GeoGebraScript"

From GeoGebra Manual
Jump to: navigation, search
Line 3: Line 3:
 
== Increment/Decrement Buttons ==
 
== Increment/Decrement Buttons ==
 
Create an integer slider, i.e., Steps.
 
Create an integer slider, i.e., Steps.
Create a Button using Button Tool, label button and add the following script:  SetValue[Steps,Steps+1]
+
Create a Button using Button Tool,  
 +
label button and add the following script:  SetValue[Steps,Steps+1]
  
 
To decrement change + to -.
 
To decrement change + to -.
 
To change size of step change 1 to your value.
 
To change size of step change 1 to your value.

Revision as of 16:50, 6 November 2011

Scripting Commands [1]--Acron 15:37, 6 November 2011 (CET)

Increment/Decrement Buttons

Create an integer slider, i.e., Steps. Create a Button using Button Tool, label button and add the following script: SetValue[Steps,Steps+1]

To decrement change + to -. To change size of step change 1 to your value.

© 2022 International GeoGebra Institute