v.7.2.1
Just wondering if anyone has ever changed the order of the default menu buttons via plugin?
e.g. swap "Close Quote" and "Copy Quote"
I'm aware that you can set the index while you insert
- Code: Select all
.InsertTool(index,key)
.InsertTool(index,key) 
//reposition copy tool in toolbar
ToolBase toolToRePosition = salesQuoteEntryForm.UltraToolbarsManager1.Tools["ID_RecordUtilitiesCopy"];
salesQuoteEntryForm.UltraToolbarsManager1.Toolbars["ToolBar"].Tools.Remove(toolToRePosition);
salesQuoteEntryForm.UltraToolbarsManager1.Toolbars["ToolBar"].Tools.InsertTool(0, "ID_RecordUtilitiesCopy");
//reposition copy tool in ribbon group
RibbonGroup group = salesQuoteEntryForm.UltraToolbarsManager1.Ribbon.Tabs["Main"].Groups["Actions"];
group.Tools.Remove(toolToRePosition);
group.Tools.InsertTool(0, "ID_RecordUtilitiesCopy");

Return to Technical and or Programming
Users browsing this forum: No registered users and 4 guests