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][GetInput] - 入力を求める maplet の表示
使い方
GetInput(msg, opts)
パラメータ
msg - 文字列または記号
opts - option=value の形の等式; ここで option は title, type または value のいずれか; maplet のためのオプション指定
説明
GetInput(msg) コマンドは、ユーザに入力を促す maplet を表示します。ユーザが入力フィールドにテキストを入力し、OK をクリックすると、そのテキストが返されます。ユーザが Cancel を選択すると、プログラムは異議を唱えます。
GetInput sample maplet worksheet に、Maplets[Elements] パッケージを用いてこのルーチンと同様の動作を行う maplet を書く方法について、記述されています。
opts 引数は、maplet のオプションを設定する、1つまたは複数の以下の等式を含みます。
title = string または symbol
maplet のタイトルの指定。デフォルトのタイトルは、Requesting Input です。
type = `error`, information, plain または warning
入力リクエストの種類。デフォルトの種類は、plain です。このオプションは、テキストの左側に置かれるアイコンを決定します。
value = string または anything
入力フィールドに最初に現れるテキスト。このオプションが string 型でない場合には、sprintf("%a", ...) を用いて string 型に変換されます。デフォルトの値は、"" です。
例
with(Maplets[Examples]): GetInput( "This expression does not parse, please correct:", 'value'="2 x + 3", 'type'=`error` );
参照
GetInput Sample Maplet, Maplets パッケージの概要, Maplets[Elements] パッケージの紹介, Maplets[Elements][InputDialog], Maplets[Examples] パッケージの紹介
Download Help Document