Subversion Repositories wimsdev

Rev

Rev 5903 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4158 bpr 1
slib_lang_exists_tmp=yes
2
 
13867 bpr 3
!!slib_title=Geogebra Applet
4158 bpr 4
slib_parms=1\
13867 bpr 5
,option or applet command for javascript, one by line or joined by a semicolon
4895 bpr 6
slib_out=Applet GeoGebra
4158 bpr 7
slib_comment=the available applet commands are either the definition of an object\
5768 bpr 8
<br/>or javascript methods. For syntax details on how to create objects, you can report to the GeoGebra help page : \
9
<br/><a target="wims_external" href="http://www.geogebra.org/help/docufr/"> www.geogebra.org/help/docufr</a>\
10
<br/>There are a lot of available javascript methods: for example, \
11
<br/>\
4903 bpr 12
<pre class="wims_code_words">evalCommand setValue setColor setVisible \
4158 bpr 13
  setLabelVisible setFixed setTrace\
14
  setAxesVisible setGridVisible setCoordSystem\
15
  deleteObject renameObject setLayerVisible\
4903 bpr 16
  setLineStyle setAnimationSpeed startAnimation\
17
</pre>\
4158 bpr 18
The complete list <a target="wims_external" href="http://www.geogebra.org/en/wiki/index.php/GeoGebra_JavaScript_Methods"> is here.</a>\
5768 bpr 19
<br/>Allowed options are the followings (see <a target="wims_external" href="http://www.geogebra.org/en/wiki/index.php/GeoGebra_Applet_Parameters"> \
4895 bpr 20
here</a> for details).\
5903 bpr 21
<br/><span class="tt wims_code_words">height</span> default <span class="tt wims_code_words">300</span>\
22
<br/><span class="tt wims_code_words">width</span> default <span class="tt wims_code_words">300</span>\
23
<br/><span class="tt wims_code_words">file</span> default <span class="tt wims_code_words">none</span>&#46; Be careful &#58; the &#46;ggb file must be in the "image" \
4158 bpr 24
directory if you use the slib in an OEF exercise, \
5768 bpr 25
<br/>in the "files" directory if you use the slib in a document ;\
26
<br/>otherwise you have to use relative adress from module directory.\
5903 bpr 27
<br/><span class="tt wims_code_words">showToolBar</span> default <span class="tt wims_code_words">false</span>\
28
<br/><span class="tt wims_code_words">customToolBar</span> default <span class="tt wims_code_words">none</span>. Be careful : no comma is allowed and if you want \
29
<br/>to separate two integers by a space-character, type a <span class="tt wims_code_words">@</span> instead of this space-character ! \
4158 bpr 30
The list of the icones <a target="wims_external" href="http://www.geogebra.org/source/program/doc/geogebra_modes.html">is here</a>\
5903 bpr 31
<br/><span class="tt wims_code_words">showMenuBar</span> default <span class="tt wims_code_words">false</span>\
32
<br/><span class="tt wims_code_words">showAlgebraInput</span> default <span class="tt wims_code_words">false</span>\
33
<br/><span class="tt wims_code_words">showAlgebraView</span> default <span class="tt wims_code_words">true</span>\
34
<br/><span class="tt wims_code_words">showResetIcon</span> default <span class="tt wims_code_words">false</span> (Be careful : this option enable to \
4158 bpr 35
reset the applet, but without the construction done from wims)\
5903 bpr 36
<br/><span class="tt wims_code_words">showToolBarHelp</span> default <span class="tt wims_code_words">true</span>\
37
<br/><span class="tt wims_code_words">enableRightClick</span> default <span class="tt wims_code_words">true</span> (Be careful : by right-clicking \
4158 bpr 38
on an object, the student can modify all the objects in the construction !)\
5903 bpr 39
<br/><span class="tt wims_code_words">language</span> default <span class="tt wims_code_words">fr</span>\
40
<br/><span class="tt wims_code_words">enableLabelDrags</span> default <span class="tt wims_code_words">true</span>\
41
<br/><span class="tt wims_code_words">enableShiftDragZoom</span> default <span class="tt wims_code_words">true</span>\
42
<br/><span class="tt wims_code_words">errorDialogsActive</span> default <span class="tt wims_code_words">true</span>\
43
<br/><span class="tt wims_code_words">debug</span> default <span class="tt wims_code_words">false</span>\
44
<br/><span class="tt wims_code_words">number</span> number of the applet in the html page (default <span class="tt wims_code_words">1</span>)\
45
<br/> In case of filestring, write <span class="tt wims_code_words">ggbBase64=the_filestring</span>\
4895 bpr 46
without space and on the first line.\
47
<p>EXAMPLE\
48
<pre>&#92;integer{x=random(3)}\
49
&#92;text{appletcommand= Z=(&#92;x,3.78)&#92;\
50
W=(6.2,2.8)&#92;\
51
Ellipse[Z,W,5]&#92;\
52
u=Line[W,Z]}\
53
#the language can be setted in the options\
54
&#92;text{option= showToolBar=true\
55
language=en\
56
customToolBar="0|5@40 10||1|2"\
57
width=600\
58
height=500\
59
number=1</tt>\
60
&#92;text{applet=slib(geo2D/geogebra3  &#92;appletcommand ; &#92;option)}\
61
&#92;statement{&#92;applet}\
13867 bpr 62
</pre>