Difference between revisions of "SetImage Command"
From GeoGebra Manual
({{command|scripting}} (was {{command|geometry}} before. Changed double quotes style that would give error if pasted in ggb) |
|||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command| | + | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}} |
;SetImage( <Object>, <Image> ) | ;SetImage( <Object>, <Image> ) | ||
Line 7: | Line 7: | ||
;SetImage( <Object>, <Text> ) | ;SetImage( <Object>, <Text> ) | ||
: Fills the object with one of the GeoGebra’s predefined action images, identified by the texts listed below. | : Fills the object with one of the GeoGebra’s predefined action images, identified by the texts listed below. | ||
− | : {{Notes| 1=The current version of the command supports only button objects. The names of the images (Text parameter) need to be enclosed in | + | : {{Notes| 1=The current version of the command supports only button objects. The names of the images (Text parameter) need to be enclosed in " ".}} |
− | :{{Example|1=<code>SetImage(button1, | + | :{{Example|1=<code>SetImage(button1,"pause")</code> shows the GeoGebra’s predefined Pause icon on button1.}} |
Latest revision as of 18:34, 5 January 2023
- SetImage( <Object>, <Image> )
- Fills the given object with an image.
- Note: The object needs to allow filling, e.g. polygons, circles, buttons…)
- SetImage( <Object>, <Text> )
- Fills the object with one of the GeoGebra’s predefined action images, identified by the texts listed below.
- Notes: The current version of the command supports only button objects. The names of the images (Text parameter) need to be enclosed in " ".
- Example:
SetImage(button1,"pause")
shows the GeoGebra’s predefined Pause icon on button1.
- GeoGebra’s predefined action images
Text | Image |
---|---|
pause | |
play | |
stop | |
replay | |
skip_next | |
skip_previous | |
loop | |
zoom_in | |
zoom_out | |
close | |
arrow_up | |
arrow_down | |
arrow_forward | |
arrow_back | |
fast_forward | |
fast_rewind | |
zoom_to_fit | |
center_view | |
help | |
settings |