ToolItem Class
A ToolItem object represents a tool item on a toolbar or a menu item in a tool item's dropdown list. It is also a collection of ToolItem objects (all menu items in a dropdown list). User-defined scripts can be called when ToolItem events occur.