com.esri.arcgis.controls
Interface IMissingCommand

All Superinterfaces:
Serializable
All Known Implementing Classes:
MissingCommand

public interface IMissingCommand
extends Serializable

Provides access to members that control missing commands on a ToolbarControl.

Description

This IMissingCommand interface is normally used by the ToolbarControl to place click and tooltip message information into the MissingCommand CoClass.

Product Availability

Available with ArcGIS Engine.


Method Summary
 void setErrorMessage(String clickMessage, String tooltipMessage)
          Sets the message that is displayed when the command is clicked.
 

Method Detail

setErrorMessage

void setErrorMessage(String clickMessage,
                     String tooltipMessage)
                     throws IOException,
                            AutomationException
Sets the message that is displayed when the command is clicked.

Description

Use SetErrorMessage to override the default click and tooltip messages that are displayed when a ToolbarControl item has a missing command, and the user clicks or moves the mouse over the item when IToolbarControl::Tooltips is true. By default the messages display the guid (the *.dll file containing the command has been unregistered) and progID (the *.dll file containing the command has been deleted) of the MissingCommand.

Remarks

A command is created automatically when an item is added to the ToolbarControl through the property pages. If the *.dll file containing the command is missing or is unregistered the command will be a missing command.

Product Availability

Available with ArcGIS Engine.

Parameters:
clickMessage - The clickMessage (in)
tooltipMessage - The tooltipMessage (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.