Customize Point tool to show only x coordinate

Mihaela Kelava shared this question 4 years ago
Answered

Can I customize Point tool (draw a point in Graphic view) in a way that when a persone draw Point it shows only it's x coordinate? I need it to be inside of the tool. Now I can use %x on objects that already exist on screen but I need it for new objects - so persone can see a coordinate when point is put on the screen rigth away without a need to go to object properties.


If anyone knows, I would be of great help!

Best Answer
photo

A user tool for all possibilities for points (free, on, in, intesect etc) is not possible.

In the attachment a user-tool that can create a new, free point or give a text-object to an exist point.

--------------------

Also in the attachment a JS. This script change all exists points in the caption with <name>=x(%v)

Maybe you can give conditions what points are to processed in this script (for example: "if show label == ON")

Comments (6)

photo
1

Hi


Maybe like this.

photo
1

Thank you for your suggestion, this will be helpful in some calculations I'll do in one another applet! I see this returns coordinate as a number. But for now I need it as label in graphic view.

photo
photo
2

A user tool for all possibilities for points (free, on, in, intesect etc) is not possible.

In the attachment a user-tool that can create a new, free point or give a text-object to an exist point.

--------------------

Also in the attachment a JS. This script change all exists points in the caption with <name>=x(%v)

Maybe you can give conditions what points are to processed in this script (for example: "if show label == ON")

photo
1

very cool...

photo
1

Thank you! This option with button is just what I needed!

photo
photo
1

A small improvement for “Set X-Label all points”:


If the caption is set to “%n = x(%x)” then the caption is NOT set again.

So you have the possibilit to change show-label or label-style (but not the caption) after press the button.

This changes are not destroyed when you press again the button.

© 2021 International GeoGebra Institute