user manual

102 Chapter 5: Creating an iTool
Registering a New Tool Class iTool Developers Guide
Example
Suppose you have an iTool class definition file named myTool__define.pro,
located in a directory included in IDLs !PATH system variable. Register this class
with the iTool system with the following command:
ITREGISTER, 'My First Tool', 'myTool'
Tools defined by the myTool class definition file can now be created by the iTool
system by specifying the tool name
My First Tool. In most cases, this command
would be included in the launch routine for the
myTool iTool, but the call can be
placed in any code that is executed before the first instance of the iTool is created.