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

来自GeoGebra Manual
跳转至: 导航搜索
(建立内容为“<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}} ;SetPerspective( <Text> ) Changes the layout and visibility of ''Views''. The text paramet…”的新页面)
 
第1行: 第1行:
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}}
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}}
;SetPerspective( <Text> )
+
;SetPerspective( < 文字> )
Changes the layout and visibility of ''Views''. The text parameter is either the full description of the layout, description of a single view you want to change or ID of one of the standard perspectives.
+
更改版面配置與''' 視區'''的顯示狀態。<文字> 參數可以是完整的版面配置描述、要變更的單一視區描述,或是其中一個標準格局的代碼。
  
===Full layout description===
+
=== 完整的版面配置描述===
To change the whole layout you can describe the view positions using an expression. ''Views'' are represented by variables (letters): the horizontal arrangement of ''Views'' is represented by the related letters juxtaposition, and their vertical arrangement by a division symbol <code><nowiki> /</nowiki></code>.
+
可使用表示式來描述視區位置,以更改整體的版面配置。每個''' 視區''' 的代表字母如下表。水平排列視區以相對應的字母並排表示,垂直排列以除號 <code><nowiki> /</nowiki></code> 表示。
 
{| class="pretty"
 
{| class="pretty"
!Letter
+
! 字母
!View
+
! 視區
 
|-
 
|-
 
|A
 
|A
|[[File:Menu view algebra.svg|link=|16px]] [[Algebra View|Algebra]]
+
|[[File:Menu view algebra.svg|link=|16px]] [[ 代數區]]
 
|-
 
|-
 
|B
 
|B
|[[File:Menu view probability.svg|link=|18px]] [[Probability Calculator]]
+
|[[File:Menu view probability.svg|link=|18px]] [[ 機率計算機]]
 
|-
 
|-
 
|C
 
|C
|[[File:Menu view cas.svg|link=|16px]] [[CAS View|CAS]]
+
|[[File:Menu view cas.svg|link=|16px]] [[ 運算區]]
 
|-
 
|-
 
|D
 
|D
|[[File:Menu view graphics2.svg|link=|16px]] [[Graphics View|Graphics 2]]
+
|[[File:Menu view graphics2.svg|link=|16px]] [[ 繪圖區| 副繪圖區]]
 
|-
 
|-
 
|G
 
|G
|[[File:Menu view graphics.svg|link=|16px]] [[Graphics View|Graphics]]
+
|[[File:Menu view graphics.svg|link=|16px]] [[ 繪圖區| 主繪圖區]]
 
|-
 
|-
 
|L
 
|L
|[[File:Menu view construction protocol.svg|link=|16px]] [[Construction Protocol]]
+
|[[File:Menu view construction protocol.svg|link=|16px]] [[ 構圖按本]]
 
|-
 
|-
 
|P
 
|P
|[[File:Menu-options.svg|link=|16px]] [[Properties Dialog|Properties]]
+
|[[File:Menu-options.svg|link=|16px]] [[ 屬性]]
 
|-
 
|-
 
|R
 
|R
|Data analysis (Desktop only)
+
| 資料分析(僅限桌機版)
 
|-
 
|-
 
|S
 
|S
|[[File:Menu view spreadsheet.svg|link=|16px]] [[Spreadsheet View|Spreadsheet]]
+
|[[File:Menu view spreadsheet.svg|link=|16px]] [[ 試算表]]
 
|-
 
|-
 
|T
 
|T
|[[File:Perspectives algebra 3Dgraphics.svg|link=|16px]] [[3D Graphics View|3D Graphics]]
+
|[[File:Perspectives algebra 3Dgraphics.svg|link=|16px]] [[3D_繪圖區|3D 繪圖區]]
 
|}
 
|}
  
 
{{examples|1=&nbsp;
 
{{examples|1=&nbsp;
* <code>SetPerspective("G")</code> makes only the [[File:Menu view graphics.svg|link=|16px]] ''Graphics View'' visible
+
* <code>SetPerspective("G")</code> 只有顯示 [[File:Menu view graphics.svg|link=|16px]] ''' 繪圖區'''。
* <code>SetPerspective("AGS")</code> makes [[File:Menu view algebra.svg|link=|16px]] ''Algebra'', [[File:Menu view graphics.svg|link=|16px]] ''Graphics'' and [[File:Menu view spreadsheet.svg|link=|16px]] ''Spreadsheet View'' visible, aligned horizontally
+
* <code>SetPerspective("AGS")</code> 顯示 [[File:Menu view algebra.svg|link=|16px]] ''' 代數區'''、[[File:Menu view graphics.svg|link=|16px]] '' 繪圖區'''和 [[File:Menu view spreadsheet.svg|link=|16px]] '' 試算表''',並水平排列。
* <code>SetPerspective("S/G")</code> makes [[File:Menu view spreadsheet.svg|link=|16px]] ''Spreadsheet'' and [[File:Menu view graphics.svg|link=|16px]] ''Graphics View'' visible with ''Spreadsheet'' on top and ''Graphics View'' below
+
* <code>SetPerspective("S/G")</code> 顯示 [[File:Menu view spreadsheet.svg|link=|16px]] '''試算表''' [[File:Menu view graphics.svg|link=|16px]] '''繪圖區''' ''' 試算表''' 在上而'''繪圖區'''在下。
* <code>SetPerspective("S/(GA)")</code> is similar as above, the bottom part of the screen consists of [[File:Menu view graphics.svg|link=|16px]] ''Graphics View'' on the left and [[File:Menu view algebra.svg|link=|16px]] ''Algebra View'' on the right
+
* <code>SetPerspective("S/(GA)")</code> 與前一個範例相似,但螢幕的下半部分由 [[File:Menu view graphics.svg|link=|16px]] ''' 繪圖區'''在左且 [[File:Menu view algebra.svg|link=|16px]] '''代數區''' 在右的方式構成。
 
}}
 
}}
  
===Single view change===
+
=== 變更單一視區===
 
To open or close individual ''Views'', add the symbols <code><nowiki>+</nowiki></code> or <code><nowiki>-</nowiki></code> before the ''View'' name (letter), respectively. In apps other than GeoGebra Classic (e.g. the Graphing Calculator)  you can also use <code>Tools</code> and <code>Table</code>for the tools and table of values.
 
To open or close individual ''Views'', add the symbols <code><nowiki>+</nowiki></code> or <code><nowiki>-</nowiki></code> before the ''View'' name (letter), respectively. In apps other than GeoGebra Classic (e.g. the Graphing Calculator)  you can also use <code>Tools</code> and <code>Table</code>for the tools and table of values.
 
{{examples|1=&nbsp;
 
{{examples|1=&nbsp;
第57行: 第57行:
 
}}
 
}}
  
===Standard perspectives===
+
=== 標準格局===
 
You may also use a text containing a single digit to use a predefined perspective: 
 
You may also use a text containing a single digit to use a predefined perspective: 
 
{| class="pretty"
 
{| class="pretty"

2024年1月5日 (五) 08:50的版本

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


SetPerspective( <文字> )

更改版面配置與視區的顯示狀態。<文字> 參數可以是完整的版面配置描述、要變更的單一視區描述,或是其中一個標準格局的代碼。

完整的版面配置描述

可使用表示式來描述視區位置,以更改整體的版面配置。每個視區的代表字母如下表。水平排列視區以相對應的字母並排表示,垂直排列以除號 / 表示。

字母 視區
A Menu view algebra.svg 代數區
B Menu view probability.svg 機率計算機
C Menu view cas.svg 運算區
D Menu view graphics2.svg 副繪圖區
G Menu view graphics.svg 主繪圖區
L Menu view construction protocol.svg 構圖按本
P Menu-options.svg 屬性
R 資料分析(僅限桌機版)
S Menu view spreadsheet.svg 試算表
T Perspectives algebra 3Dgraphics.svg 3D 繪圖區
範例:  
  • SetPerspective("G") 只有顯示 Menu view graphics.svg 繪圖區
  • SetPerspective("AGS") 顯示 Menu view algebra.svg 代數區Menu view graphics.svg 繪圖區Menu view spreadsheet.svg 試算表,並水平排列。
  • SetPerspective("S/G") 顯示 Menu view spreadsheet.svg 試算表Menu view graphics.svg 繪圖區試算表在上而繪圖區在下。
  • SetPerspective("S/(GA)") 與前一個範例相似,但螢幕的下半部分由 Menu view graphics.svg 繪圖區在左且 Menu view algebra.svg 代數區在右的方式構成。


變更單一視區

To open or close individual Views, add the symbols + or - before the View name (letter), respectively. In apps other than GeoGebra Classic (e.g. the Graphing Calculator) you can also use Tools and Tablefor the tools and table of values.

範例:  
  • SetPerspective("+D") adds Graphics View 2 to the currently displayed ones, on the right
  • SetPerspective("-D") removes Graphics View 2 from the currently displayed ones
  • SetPerspective("+Tools") opens the sidebar in Graphing Calculator and switches it to tools tab
  • SetPerspective("+Table") opens the sidebar in Graphing Calculator and switches it to table of values
  • SetPerspective("-Tools") closes the sidebar in Graphing Calculater, no matter which tab is selected


標準格局

You may also use a text containing a single digit to use a predefined perspective:

Text Perspective
"1" Algebra And Graphics
"2" Geometry
"3" Spreadsheet
"4" CAS
"5" 3D Graphics
"6" Probability

These roughly correspond to "AG", "G", "SG", "CG", "AT" and "B" respectively, but may also affect the display of Input Bar and content of Toolbar.

備註:
© 2024 International GeoGebra Institute