Creating a Button to command another window / Criando botão que comande objetos em outra janela.

eloy.junior shared this question 3 years ago
Answered

Is it possible to create a button that interfere in another window in the same file? I wanna to create a button in Visualization Window 1 to make something to an object in Visualization Window 2.


É possível criar um botão que interfira em outra janela no mesmo arquivo? Eu quero criar um botão na janela de visualização 1 para fazer algo para um objeto na janela de visualização 2.

Comments (4)

photo
2

The SetActiveView command allows you to change the "focus" of your construction in the desired View.

Anyway, any command you use in GeoGebra is applied to the object used as parameter, regardless the View in which the object is displayed.

photo
1

Simone,

I created an animation using trace of a point in window 2, but all commands stay in window 1. To erase the trace the command ZoomIn[1] wasn't working, but with your suggestion everthing is done right.


Really appreciate your help, regards

photo
photo
2

create a button with this script:


setactiveview(2)

zoomin(1)



photo
1

Thanks for your help.

photo
© 2021 International GeoGebra Institute