Properties
Similar Topics
Statistics
Comments
2
Participants
3
Subscribers
0
Votes
1
Views
942
Share

Turning Coordinate Grid/Axes on without using system icons
Answered
How would you define a checkbox, button, or ? so that the Coordinate Grid and Axes in the Graphics window could be turned on or off without having to use the system icons?
Thanks,
Jim
Files:
CoordGridAxis I...
- 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,
g=ggbApplet;
a=g.getValue('a')==1;
g.setGridVisible(a);
g.setAxesVisible(a,a);
g.refreshViews();
Cheers.
Michel
https://ggbm.at/562529
Alternatively with ggbscript
If your checkbox is b, set the Update script to be ShowGrid
If using a button create the boolean b=true and the OnClick script to be
ShowGrid
SetCaption[button1,If[b,"Hide Grid","Show Grid"]]
SetValue[b,¬b]
Similarly for ShowAxes[]
Simon
Comments have been locked on this page!