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[AddIcon] - hdb ファイル (Maple ヘルプデータベース) にアイコンファイルを追加
使い方
AddIcon(icon_name, path=source, hdb=target)
パラメータ
icon_name
-
string ; hdb ファイルにアイコンを格納するときに使用する名前
source
string ; アイコン画像が含まれるファイルのパス
target
(オプション) string ; アイコンを格納する Maple ヘルプデータベースファイルのパス (デフォルト : ユーザーのデフォルトの tasks.hdb ファイル)
説明
AddIcon 関数は、アイコン画像を hdb (Maple ヘルプデータベース) ファイルに格納します。これは、カスタムスニペットパレットでアイコンを使用する前に実行しておかなければならない処理です。
格納されたアイコンは、アイコンをスニペットパレットのタスクに関連付けるときに icon_name で参照することができます (詳細は DocumentTools[AddPaletteEntry] 参照)。
hdb=target を指定しない場合、アイコンはユーザーのデフォルトの tasks.hdb ファイルに格納されます。
アイコン画像ファイルや hdb ファイルのパスは、絶対パスまたは currentdir からの相対パスのどちらでも指定できます。
ファイルおよびパスの指定に関する詳細は、ファイル名およびバックスラッシュを参照してください。
互換性
DocumentTools[AddIcon] コマンドは Maple 16 で導入されました。
Maple 16 における変更点についての詳細は、Maple 16 の新機能 を参照してください。
例
with(DocumentTools):
AddIcon( "Task 1 icon", path = "/path/to/icon/file.png" );
AddPaletteEntry( "Task_1", palette = "My palette", icon = "Task 1 icon" );
関連項目
パレットのアレンジ、バックスラッシュ、currentdir、DocumentTools、DocumentTools[AddPalette]、DocumentTools[AddPaletteEntry]、ファイル名、hdb
Download Help Document