“RunClickScript 指令”的版本间的差异

来自GeoGebra Manual
跳转至: 导航搜索
(建立内容为“<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}} ;RunClickScript( <Object> ) : Runs the click script associated with the Object (if it has…”的新页面)
 
第1行: 第1行:
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}}
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}}
;RunClickScript( <Object> )
+
;RunClickScript( < 物件> )
: Runs the click script associated with the Object (if it has one).
+
: (如果有的話)執行 <物件> 的 OnClick 程式腳本(script)。
:{{Example|1=Let ''A'' and ''B'' be points.  The ''OnClick'' script for ''B'' is <code>SetValue(B,(1,1))</code>. Setting the ''OnClick'' script of ''A'' as <code>RunClickScript(B)</code>, moves point ''B'' to (1,1) when point ''A'' is clicked.}} 
+
:{{Example|1= 若有兩點 ''A'' ''B'' 。設定 ''B'' ''OnClick'' 程式腳本為 <code>SetValue(B,(1,1))</code> ,設定 ''A'' ''OnClick'' 程式腳本為 <code>RunClickScript(B)</code> 。當按下 ''A'' 點時,會將 ''B'' 點移動到 (1,1) }} 
{{Note|1=See also [[RunUpdateScript Command|RunUpdateScript]] command.}}
+
{{Note|1= 請參閱 [[RunUpdateScript_指令]] }}

2021年7月28日 (三) 04:46的版本

Accessories dictionary.png
本頁為官方文件,一般使用者無法修改,若有任何誤謬,請與官方聯絡。如欲編輯,請至本頁的開放版


RunClickScript( <物件> )
(如果有的話)執行 <物件> 的 OnClick 程式腳本(script)。
範例: 若有兩點 AB。設定 BOnClick 程式腳本為 SetValue(B,(1,1)),設定 AOnClick 程式腳本為 RunClickScript(B)。當按下 A 點時,會將 B 點移動到 (1,1)。
備註: 請參閱 RunUpdateScript_指令
© 2024 International GeoGebra Institute