How to make a tool usable a few times
Hello,
I wonder how I could make a tool disappear after being picked up and used. Let me explain it.
I’d like to create a GeoGebra applet (as a part of a construction activity). I want to use only selected tools. I know that I can customize the tool bar. Moreover, I’d like to use certain tool only a few times. For example, there is the tool “circle with center through point” on the tool bar of the applet and it is possible to use it just for one time. It means that if I use this tool, i.e. I draw a circle, I’m not able to use it any more, i.e. I can’t draw any other circle. And if I delete the circle, I can use the tool, I’m able to construct the circle...
I’m thinking about other functionality. Is it possible to force GeoGebra to construct some object while using certain sequence of tools? I mean this: Can I prepare an activity (applet) which can be solved by the use of (for example) “point”, “point”, “line segment”, “circle with center and radius”, “intersection”, “center or midpoint”, “perpendicular line”? How can I do that? Any idea?
Thanks a lot!
Lukas
Maybe possilble with JavaScript: ggbApplet.setMode() changes the selected tool
la page des "modes" (anglais) est ici
“point”, 1
“line segment”, 15
“circle with center and radius”, 34
“intersection”, 5
“center or midpoint”, 19
“perpendicular line”, 4
mon brouillon
@Mike (ou Raymond ?)
j'ai perdu du temps avant de tester en ligne, avec mon GGb5 Classic desktop 5 le passage à l'étape 3 construisait un segment fantôme ????)
euh mon fichier en ligne fonctionne avec FireFox mais pas avec Chrome !!!!
.... si des fois, si j'insiste ... j'ouvre le lien, essaye le fichier, tout disparaît, rafraichis la page, et là ça fonctionne ???
@Lukas Vizek
Please make a sample
- Picture of finish construction
- List of constructions steps as text
for example: {1, used Tool, what tool disappear after this step}......{nn, used Tool, what tool disappear after this step}
-------------------------
I think your other question is a custom tool
Give the description of a sample
j'en reste là, à défaut de réaction du demandeur
https://www.geogebra.org/m/tbxr8rx8
...
Dear all,
Thank you very much for your comments on my question. I appreciate it. I have to note two points. First, I like the solution by @Noel Lambert. Second, I'm beginner in scripting.
So, please apologize my asking now. I'd like to create ggb file with this property related to my previous question: There is a figure on graphics. I want it to become a tool. See the attachment as an example. We can think about three versions:
So, I don't want to work with the toolbar. The question is, what do I need to write as the script in each cases? What to input to the properties of the figure? I read the commands on https://wiki.geogebra.org/e..., but I don't know the structure of scripting language, if I may say so. I'm sorry about that.
I look forward to your ideas.
Best,
Lukas
un fichier
https://www.geogebra.org/m/pj3tnjrh
Comments have been locked on this page!