To Add a Tooltip and Extended Tooltip to a Command

Display the Customize User Interface (CUI) Editor

Add a tooltip to a command

  1. In the Customize tab, Command List pane, select the command to which you want to add a tooltip.
  2. In the Properties pane, Description field, enter the tooltip text for the selected command.
  3. Click Apply.

    The next time the cursor hovers over the command on a toolbar or ribbon panel, the text is displayed in a tooltip.

Add an extended tooltip to a command

  1. In the Customize tab, Command List pane, select the command to which you want to add an extended tooltip.
  2. In the Properties pane, select the Extended Help File field and click the [] button.
  3. In the Select Extended Help File dialog box, browse to and select the XAML file that contains the extended tooltip definition for the command. Click Open.
  4. In the Select Help ID dialog box, select the help ID for the extended tooltip content. Click OK.
  5. Click Apply.

    When the command is added to a toolbar or ribbon panel, the extended tooltip content is displayed if extended tooltips are enabled and the cursor hovers over the command for the designated time interval.

Create a XAML file

  1. In a text editor (for example, Notepad), create a new file and enter the elements needed to define the extended tooltip content.

    As an example, enter the text below in the text editor:

    <ResourceDictionary
     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     xmlns:src="clr-namespace:Autodesk.Windows;assembly=AdWindows">
     <src:RibbonToolTip x:Key="MYEH_CMD_0003">
     <src:RibbonToolTip.ExpandedContent>
     <StackPanel>
     <TextBlock Background="AntiqueWhite" TextAlignment="Center">
     Configures the settings for the current drawing.
     </TextBlock>
     </StackPanel>
     </src:RibbonToolTip.ExpandedContent>
     </src:RibbonToolTip>
    </ResourceDictionary>
  2. Save the file as an ASCII text file, with a file extension of .xaml.

Update extended tooltips created for AutoCAD 2009-based products to use in the latest release

  1. Open the XAML file in a text editor (for example, Notepad).

    The following is an example of an extended tooltip created for use with an AutoCAD 2009-based product.

    <src:ProgressivePanel x:Key="MYEH_CMD_0003">
     <StackPanel>
     <TextBlock Background="AntiqueWhite" TextAlignment="Center">
     Configures the settings for the current drawing.
     </TextBlock>
     </StackPanel>
     </src:ProgressivePanel>
  2. Change the bold and italicized text shown in the previous step to match the following to use the extended tooltip with the latest release:
    <src:RibbonToolTip x:Key="MYEH_CMD_0003">
     <src:RibbonToolTip.ExpandedContent>
     <StackPanel>
     <TextBlock Background="AntiqueWhite" TextAlignment="Center">
     Configures the settings for the current drawing.
     </TextBlock>
     </StackPanel>
     </src:RibbonToolTip.ExpandedContent>
     </src:RibbonToolTip>
  3. Save the changes made to the XAML file.