Properties
Category
English
Similar Topics
Statistics
Comments
6
Participants
3
Subscribers
0
Votes
1
Views
291
Share
Answered
I would like to have a check box to display or not the grid. I have the following javascript attached to my check box.
var e=ggbApplet.getValue("e");
if (e==true) {ggbApplet.setGridVisible(true)} else {ggbApplet.setGridVisible(false)}
It works fine, but it shows/hides the grid on both graphics windows. How can I make it only affect the first graphics window?
Thanks.
Gabriela Sanchis
- 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
© 2021 International GeoGebra Institute
I was looking for a GeoGebraScript command, possibly SetGridVisible(true/false,1/2).
The only thing I could find was a reference in the wiki to your JavaScript command. IMHO, this is a worthwhile task for a new feature unless it already exists.
Tony
Hi
a work around in this file
https://ggbm.at/552011
Daniel
Well - I came up with one solution which isn't bad. I made the grid for the second window white.
@sanchisgr, 8) idea, but I can think of reasons to have grids at different times in different windows.
@daniel, would it be nicer if this could be done only using GGScript? But nice job, you used a white grid on Graphic2.
Both well done.
Tony
Hi Tony
Impossible to do in GGBscript because no informations about grid and axes for the sheet, only in Javascript
Daniel
I was implying, I would like there to be a GGS feature to allow this with the ability to chose the window. The feature is not available with fully JavaScript either.
Tony
Comments have been locked on this page!