Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Maplets[Elements][Item] - ボックス要素内にある項目の指定
使い方
Item(opts)
パラメータ
opts - value=string の形の等式; Item 要素のためのオプション指定
説明
Item 要素は、ComboBox, DropDownBox または ListBox 要素内にある、項目を指定します。
Item 要素の特徴は、オプションを用いて修正が可能です。Maplets パッケージでのオプション指定を簡単にするために、等式を用いることなしにあるオプションと内容を設定することが可能です。次の表では、(左側の列に) 要素、記号、および型、そして (右側の列に) 型がデフォルトで割り当てられると入力を行う、対応するオプションまたは内容を一覧表示します。
Elements, Symbols, or Types Assumed Option or Content string or symbol value option
Item 要素は、他の要素を含むことができません。
Item 要素は、ComboBox, DropDownBox または ListBox 要素内に含めることが可能です。
次の表に、Item 要素のオプションの、制御および使用法について記述します。
I 列の x は、(要素の定義を行う) 呼び出し手順で指定される、初期化が可能なオプションを示す。
R 列の x は、呼び出し手順で必要となるオプションを示す。
G 列の x は、オプションが Get ツールを用いて取得できる、すなわち読み込み可能であることを示す。
S 列の x は、 SetOption 要素あるいは Set ツールを用いて設定される、書き出し可能なオプションを示す。
Option I R G S value x x
opts 引数は、maplet のオプションを設定する、1つまたは複数の以下の等式を含みます。
value = string または symbol
コンボボックス、リストボックス、ドロップダウンボックスに記述される文字列。
例
ユーザに好みの色を尋ねる maplet の例:
with(Maplets[Elements]): maplet := Maplet([ ["Pick your favorite color: ", ComboBox['CoB1']( Item("red"), Item("green"), Item("blue"), Item("none of the above") )], [Button("OK", Shutdown(['CoB1'])), Button("Cancel", Shutdown())] ]): Maplets[Display](maplet);
ComboBox 内でリストを用いることで、より簡単に同じ物を作成した例:
maplet := Maplet([ ["Pick your favorite color: ", ComboBox['CoB1'](["red", "green", "blue"])], [Button("OK", Shutdown(['CoB1'])), Button("Cancel", Shutdown())] ]): Maplets[Display](maplet);
参照
Maplets パッケージの概要, Maplets[Display], Maplets[Elements] パッケージの紹介, Maplets[Elements][Button], Maplets[Elements][ComboBox], Maplets[Elements][DropDownBox], Maplets[Elements][ListBox] Maplets[Elements][Maplet], Maplets[Elements][SetOption], Maplets[Elements][Shutdown], Maplets/他の要素, Maplets[Tools][Get], Maplets[Tools][Set], plot[color]
Download Help Document