segment thickness

Rumburak shared this question 5 years ago
Answered

Hi


I wish that when I select with click a segment (there are many segments) modify the segment thickness. When I click elsewhere thickness return to the initial stage.

Best Answer
photo

I am thinking that you want is in GG already, but you want more emphasize. perhaps it is possible a custom style of emphasize (ie:2*size or 3*thickness or another color) during selection. Now the selected segment is bold; the selected point has aura etc

I hope that developers read this and your wish is possible

Comments (8)

photo
1

"when I select with click a segment (there are many segments) modify the segment thickness."

This is possible. Select your line, choose "object properties" - "scripting" - "on click"

and type

  1. SetLineThickness[ <Object>, <Number> ]

The object must be your segment, and the number should be big (e.g. 10). "When I click elsewhere "

That is more difficult, because "elsewhere" is not a object to which you can give a new script.

But you could create an invisible object, which covers the whole area, e.g. a rectangle with no opacity between the four corners.

For that "elsewhere" element you need the script

SetLineThickness[ <Object>, <Number> ]

with your line as the object again

and a smaller number.


PS: I had a mistake. If the "elsewhere" object covers the whole screen, a click at the segment is also a click at the "elsewhere" object (and the line thickness doesn't enlarge).

You need a separate area (or button) to reset the line thickness by click.

photo
1

Yes, what you say is almost reasonably (10x). Often in GeoGebra some simple things is complicated ...


[offtopic]

Geogebra should be more focused on classrooms presentations. General things such as return name of object clicked that gives me the opportunity to create procedures available for a large number of elements, not one by one...

[/offtopic]

photo
1

hello

the order in protocol is important

clic on segments then in background (you must enlarge the polygon to whole window (ie: using the corners as vertexes)

saludos

Files: foro.ggb
photo
1

Thanks for the reply mathmagic .

It is okay, even if I can not select multiple segments,

[offtopic]

But, is what I say .


in solving a problem in classroom I want to emphasize the thickness of a particular segment. I do not know from the start who is segment will be highlighted by thick. That means you will have 40-50 segments to apply an identical procedure when a simple general command could solve more easy.

Ex: SetLineThickness [GetClickedElementName 2]

[/offtopic]

photo
photo
1

I think that GG developers do not want mouse-events because the PC must be cheking a great lot of code. If the machine must do something on (ie) mouse-over then the code must be repeated continuosly and GG will be slow

photo
2

I am thinking that you want is in GG already, but you want more emphasize. perhaps it is possible a custom style of emphasize (ie:2*size or 3*thickness or another color) during selection. Now the selected segment is bold; the selected point has aura etc

I hope that developers read this and your wish is possible

photo
1

"bit thicker" is not enough . mathmagic exposed very well this topic. Maybe is the best solution regarding my problem for next release.

To learn in classroom students needs "visual effects" that increases their understanding.


  1. perhaps it is possible a custom style of emphasize (ie:2*size or 3*thickness or another color) during selection. Now the selected segment is bold; the selected point has aura etc

    I hope that developers read this and your wish is possible


  2. [ mathmagic ]

photo
1

Votre exemple parceque il ne resamble pas a native "select object" ou "deselect object". Si je veux "deselecte" l'object il ne posible pas lorceque je fait click on point. Et encore, je ne croix pas que Geogebra est destinee seulement a qui connais JavaScript. GeogebraScript est tres intuitive et utilise seulement ses ordres (commands). Si vous voulez que un utilisateur (professeur de mathematique) doit savoir JavaScript alors Geogebra n'a pas auqune avenir en ecoles en plus. Je croix.

Excuse moi pour ma pauvre francais et ma pauvre anglais. Depuis 40 ans je ne pas progrese.

addendum : c'est vrai. Il pleut ,,,

appendix : mon nom Craciun en francais is Noel. Peutetre pour cette motif la neige reste sur la montagne :)

post scriptum: pour lesquels il a ete cree Geogebra ? Pour JavaScript utilisateurs or pour les proffeseurs. Je crois que vous oublier l'histoire de Geogebra. Moi non.

© 2021 International GeoGebra Institute