Class CMPanelTool extends CMPanel
CMPanelTool
Object Functions
Inherited From: CMPanel
Returns | Function | Throws |
---|---|---|
AddTool(ToolID, UnselectedFilePath, SelectedFilePath, ToolTip, TheFunction, AdditionalInfo) | ||
AddToolWithHandler(ToolID, UnselectedFilePath, SelectedFilePath, ToolTip, TheFunction, AdditionalInfo) | ||
RemoveTool(ToolID) | ||
SelectTool() |
Object Functions
AddTool(ToolID, UnselectedFilePath, SelectedFilePath, ToolTip, TheFunction, AdditionalInfo)
Add a tool to the panel.
Parameters:
ToolID - ID which will be used to create the element
UnselectedFilePath - file path for the image of the tool when unselected
SelectedFilePath - file path for the tool icon when selected
ToolTip - text to display as the tool tip or undefined
TheFunction - Function to call when the tool button is pressed (for action buttons)
AdditionalInfo - Information to pass to the function
AddToolWithHandler(ToolID, UnselectedFilePath, SelectedFilePath, ToolTip, TheFunction, AdditionalInfo)
Add a tool to the panel.
Parameters:
ToolID - ID which will be used to create the element
UnselectedFilePath - file path for the image of the tool when unselected
SelectedFilePath - file path for the tool icon when selected
ToolTip - text to display as the tool tip or undefined
TheFunction - Function to call when the tool button is pressed (for action buttons)
AdditionalInfo - Information to pass to the function
RemoveTool(ToolID)
Removes the specified tool from the panel
Parameters:
ToolID - the DOM element id for the tool.
SelectTool()
Select a specific tool based on its ID and unselect the other tools