HOW TO

Display Text Only for an ICommand

Summary

When the Customize dialog box is open in ArcMap, you can right-click on a Command to set its appearance to Text Only. Instructions provided are to programmatically set the appearance to Text Only for a custom tool, or command button that implements ICommand.

Procedure



  1. Create a Visual Basic ActiveX DLL project that implements ICommand.

    Note:
    Refer to the article in Related Information

  2. Remove implementation code from the Bitmap property for the ICommand:

    Code:
    Private Property Get ICommand_Bitmap() As esriCore.OLE_HANDLE
    ' ICommand_Bitmap = <do not provide an icon>
    End Property

  3. Include implementation code for the Caption property. The value of the Caption is displayed when the Text Only option is selected for a Command.

    Code:
    Private Property Get ICommand_Caption() As String

    ' Add your implementation here
    ICommand_Caption = "My Command Caption"

    End Property

Article ID:000005767

Software:
  • ArcMap 8 x
  • ArcMap 9 x

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic