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
DocumentTools[AddPaletteEntry] - タスクをカスタムスニペットパレットに追加
使い方
AddPaletteEntry(entry, palette=palette_name, icon=icon_name)
パラメータ
entry
-
string ; カスタムスニペットパレットに追加するタスクの名前
palette_name
string ; entry を追加するスニペットパレットの名前
icon_name
(オプション) string ; entry に関連付けるアイコンの名前
説明
AddPaletteEntry コマンドは、スニペットパレットにタスクを追加します。パレットが存在しない場合は、デフォルトのオプション値を使用してパレットが作成されます。スニペットパレットの作成に関する詳細は、DocumentTools[AddPalette] を参照してください。
パレットに追加するタスクは、事前に作成し、タスクテンプレート として保存しておく必要があります。
オプションのパラメータ icon=icon_name を指定しない場合、デフォルトのテキストアイコンが使用されます。アイコンの作成方法についての詳細は、DocumentTools[AddIcon] を参照してください。
パレットへ追加すると、パレットでそのアイコンをクリックすることで、関連付けられたタスクテンプレートがワークシートに挿入されます。
パレットからエントリを削除するには、DocumentTools[RemovePaletteEntry] を使用します。
互換性
DocumentTools[AddPaletteEntry] コマンドは Maple 16 で導入されました。
Maple 16 における変更点についての詳細は、Maple 16 の新機能 を参照してください。
例
with(DocumentTools):
最初の例では、「テキスト」アイコンで「Task_1」という名前のパレットエントリが作成されます。「My first palette」というパレットが存在していない場合は、新しく作成されて、左側にあるパレットペインの最上部に追加されます。
AddPaletteEntry( "Task_1", palette = "My first palette" );
2 番目の例では、まずパレットを作成し、タスク用のアイコンを格納します。その後、そのアイコンを使用してパレットにタスクを追加します。
AddPalette( "My second palette", location = "right", position = "top" );
AddIcon( "Task 2 icon", path = "/where/the/icon/file/is.png" );
AddPaletteEntry( "Task_2", palette = "My second palette", icon = "Task 2 icon" );
関連項目
DocumentTools、DocumentTools[AddIcon]、DocumentTools[AddPalette]、DocumentTools[RemovePaletteEntry]、タスクテンプレート、worksheet/expressions/createpalette、 worksheet/help/creatingtasks
Download Help Document