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 パッケージの紹介
使い方
Maplets[Elements][function](arguments)
function(arguments)
説明
Maplets[Elements] パッケージは、例えばウィンドウ、ダイアログ、テキストフィールド、チェックボックスといった、maplet を構成する個々の成分 (要素と呼ばれる) を定義するための、いくつかのルーチンを含んでいます。
Maplets[Elements] パッケージ内にある各関数は、コマンドの呼び出し手順において、関数名の長い形と短い形のいずれを用いてもアクセスが可能です。
Maplets[Elements] パッケージ内にある関数は、コマンドの呼び出し手順において、常に関数名の長い形によるアクセスが可能です。
例えば、maplet 内のある要素の値を得るためには、呼び出し手順で次のような長い形を使用します。
Maplets[Elements][Get](arguments)
関数名の長い形は、その関数の短い形が with(Maplets[Elements], function) で事前に定義されていない場合や、パッケージ関数の全ての短い形が with(Maplets[Elements]) で事前に定義されていない場合に必要となります。さらに、現在の Maple セッション内の他のオブジェクトで、Maplets[Elements] パッケージ内の関数と同じ名前が使用されている場合、Maplets[Elements]['function'](arguments) というような未評価にする引用符を用いることで、Maplets[Elements] 関数にアクセスすることが可能となります。
Maplets[Elements] パッケージの実行の基礎となるのはモジュールであるため、パッケージから関数にアクセスする際には、Maplets:-Elements:-function の形を用いることも可能です。記号 :- はその右辺を評価しないため、この形では未評価にする引用符を使用する必要がありません。ユーザが作成するプログラム内から Maplets[Elements] ルーチンにアクセスする際には、この記号の使用を推奨します。これでユーザがプログラム文全体で予想したとおりの実行が得られるでしょう。
特定の Maplets[Elements] 関数の短い形は、with(Maplets[Elements], function) が入力された後に、現在の Maple のセッション中で使用が可能になります。現在の Maple のセッション中で、全ての Maplets[Elements] 関数の短い形を使用するためには、with(Maplets[Elements]) コマンドを最初に入力して下さい。
例えば、with(Maplets[Elements]) が既に入力されるものと仮定すると、以下の短い形の呼び出し手順を使用して、すばやく数式を入力することが可能となります。
Get(arguments)
Maplets Elements パッケージの関数一覧
利用可能な関数の一覧を以下に示します。
Action AlertDialog Argument BoxCell BoxColumn BoxLayout BoxRow Button ButtonGroup CheckBox CheckBoxMenuItem CloseWindow ColorDialog ComboBox ConfirmDialog DropDownBox Evaluate FileDialog Font GridCell GridLayout GridRow Image InputDialog Item Label ListBox Maplet MathMLEditor MathMLViewer Menu MenuBar MenuItem MenuSeparator MessageDialog Plotter PopupMenu QuestionDialog RadioButton RadioButtonMenuItem Return ReturnItem RunDialog RunWindow SetOption Shutdown Slider Table TableHeader TableItem TableRow TextBox TextField ToggleButton ToolBar ToolBarButton ToolBarSeparator Window
これらの要素は、7つに分かれたグループに分類されています:
コマンド要素 ダイアログ要素 レイアウト要素 メニュー要素 他の要素
ツールバー要素 ウィンドウボディ要素
Maplets Elements パッケージ内にある関数に関するヘルプの参照方法
特定の Maplets Elements 関数に関するヘルプを表示するためには、次のコマンドのうちのいずれかを入力します(ここで function は上記の一覧から選択した名前を表す)。
?Maplets[Elements][function]
?Maplets,Elements,function
?function (この場合、function は Maple で固有の名前でなくてはなりません。)
例
with(Maplets[Elements]): maplet := Maplet(["Hello World!", Button("OK", Shutdown())]): Maplets[Display](maplet);
参照
Maplets パッケージの概要, with
Download Help Document