Select to view content in your preferred language

Re: Undo History

366
2
11-03-2022 03:54 PM
MatthiasBoucher
Occasional Contributor

Hello.

I'd like to duplicate the "Undo + undo history button" in the ribbon of ArcGIS Pro using a custom sdk addin. I used these two lines in my Config.daml file : 

<button refID="esri_core_undoButton" />
<button refID="esri_core_undoHistory" />

However, the result is not the same as the standard button with the little dropdown arrow : there are two distinct buttons instead of two in one.

 Do you knwon if it is possible to group those two tools in one, as in the standard quick access tolbar ?

0 Kudos
2 Replies
KenBuja
MVP Esteemed Contributor

There are different ways of grouping buttons, using tool palettes, button palettes, or button splits.

The Ribbon Control sample is a good reference of how each of these are constructed and how they look on the ribbon.

0 Kudos
Wolf
by Esri Regular Contributor
Esri Regular Contributor

Try this:

<groups>
  <!-- comment this out if you have no controls on the Addin tab to avoid
        an empty group-->
  <group id="TestEditUndoButton_Group1" caption="Add Undo button" appearsOnAddInTab="true">
    <!-- host controls within groups -->
		<splitButton refID="esri_core_undoSplitButton" size="small"/>
  </group>
</groups>

 

Wolf_0-1667570317075.png

You can find all undo associated daml ids here:  DAML ID Reference ADCore.daml · Esri/arcgis-pro-sdk Wiki (github.com)