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[Examples][Selection] - ユーザに選択を行うよう促す maplet の表示
使い方
Selection(L, opts)
パラメータ
L - オブジェクトのリスト
opts - option=value の形の等式; ここで option は caption, default, height, title, unique または width のいずれか; maplet のためのオプション指定
説明
Selection(L) コマンドは、ユーザにリストの中から1つまたは複数の項目を選択するように促す maplet を表示します。選択された項目に対応する式列が返されます。
string 型である L の要素は、文字列として表示されます。他の要素は、MathMLViewer 要素を用いて表示されます。
Selection sample maplet worksheet に、Maplets[Elements] パッケージを用いてこのルーチンと同様の動作を行う maplet を書く方法について、記述されています。
opts 引数は、maplet のオプションを設定する、1つまたは複数の以下の等式を含みます。
caption = string
ユーザに選択を促す行の指定。デフォルトの見出しは、Make a selection: です。
default = posint または list(posint)
初期状態として選択される項目。デフォルトでは、L の項目が何も選択されていません。しかし、オプション unique を true に設定すると、デフォルトでは、L 内の最初の項目が選択されます。オプション unique が true に設定されている場合、1つの項目だけが指定可能です。
height = posint
入力フィールドの高さ。デフォルトの高さは、1 です。
title = string
maplet のタイトルの指定。デフォルトのタイトルは、Selection です。
unique = true または false
このオプションが true に設定されている場合、ユーザは1つの項目しか選択できません。
width = posint
入力フィールドの幅。デフォルトの幅は、30 文字です。
例
with(Maplets[Examples]): Selection([a, b, c, d]); # User selects c and d
3, 4
参照
Maplets パッケージの概要, Maplets[Elements] パッケージの紹介, Maplets[Elements][MathMLViewer], Maplets[Examples] パッケージの紹介, Selection Sample Maplet, 文字列
Download Help Document