Associate a script to a button through a command

Gae Spes shared this question 3 years ago
Answered

After creating a button by means of the command

b=Button(<caption>),

is it possible to associate a script to b

NOT by opening the properties window of b through righ-click

BUT just by means of commands involving b ?


Is it possible to do the same thing with other objects than a button ?


It would by nice if there were a command like

Button(<caption>,<list_of_commamds>).

Comments (3)

photo
1

Maybe RunClickScript() is interesting

photo
1

From

https://wiki.geogebra.org/e...

it seems to follow that the involved script has to be set before.

photo
photo
1

Of course this does not affect

the power of javascript buttons:

http://tinyurl.com/paggjs

© 2021 International GeoGebra Institute