Object Label - Caption linked to display dynamic text

lewws shared this idea 13 years ago
Under Consideration

Hi Geogebra Team,

Currently the workaround for flexible captions to an object is by creating text object and positioning it to extra point (to be made invisible ) on the object (used by Kathryn).


Since there is already a Caption property available and Show Label :" Caption" method in the object, is it possible to link (point) it to a text object which then saves the labour either attaching it to a existing point on an object or having to create a point and to make it invisible.


In the picture below I want angle a to show text of Text text2 "

https://ggbm.at/5449450b648612c6adafd60e6502a5de155416

Comments (10)

photo
1

Bonjour

Si value UNE numérique , il faut » aller à la Propriété Corner , PUIS verser Afficher la Valeur SEULEMENT .

Daniel

] attachement [ = 0] [ lvalue.jpg attachement /5e0462c07a4e88717c770c2da043733c

photo
1

Daniel,


Thanks for the reply. I don't understand French but your picture shows you suggest I use Label : Value to get the dynamic value of the angle.


I actually want to do more than that. By using a text object we can have dynamic values with more comments and algebra expressions. But now we can only 'attach' the text object to some point by using the object's Position property set to that point of attachment.


It would be good if we can directly attach the text object to the Label property.


Rgds

Lew W.S

photo
1

You can have expressions such as

The value of %n is %v

as a Caption and in the beta 4.0 version you can also have eg

$ \sqrt(x) $

photo
1

You can have expressions such as

The value of %n is %v as a Caption


I tried this in the attached file but it doesn't seem to work!


I think it would be useful if captions had more of the properties of a text box or at least could do what lewws suggests.

Could the angle symbol be included in the drop-down list?

https://ggbm.at/544983

photo
1

This won't work:

The value of m is %m


This will work:

The value of %n is %v

photo
1

What am I doing wrong?

For %n is n the name of the object to which the caption belongs and for %v is v the value of that object?. Is v supposed to change dynamically if n changes?

Also if a = 4.32 do I enter "the value of %a is %4.32"? but then if I change a the caption will be misleading.

https://ggbm.at/544987

photo
1

Don't use %a, %b, %c, %d, ... etc.


%n and %v are the only things that work.

photo
1

Thank you murkle, at last I understand.

%n returns the name of the object to which the caption belongs.

%v returns the value of the object.

https://ggbm.at/544991

photo
1

Is it possible to insert the value of another object in a caption?

I understand that %v returns the value of the current object in its own settings dialog

Is there a way to get the value of object2 and use it the caption of another object, say object1 in the settings dialog of object1?

photo
2

Maybe using the SetCaption() command https://wiki.geogebra.org/e... in a script?

See the OnUpdate script of point B in my file below. But it basically depends on how your file is.

photo
© 2023 International GeoGebra Institute