Difference between revisions of "SetImage Command"

From GeoGebra Manual
Jump to: navigation, search
({{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|geometry}}
+
<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,”pause”)</code> shows the GeoGebra’s predefined  Pause icon on 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
link
play
link
stop
link
replay
link
skip_next
link
skip_previous
link
loop
loop
zoom_in
link
zoom_out
link
close
link
arrow_up
link
arrow_down
link
arrow_forward
link
arrow_back
link
fast_forward
link
fast_rewind
link
zoom_to_fit
link
center_view
link
help
link
settings
link
© 2024 International GeoGebra Institute