I want to add an item to a menu in customization to run a BAQ report. I found this:
which is kind of interesting but doesn’t work because I think the "using infragistics…. " has been left out?
Don’t know any ideas?
I want to add an item to a menu in customization to run a BAQ report. I found this:
which is kind of interesting but doesn’t work because I think the "using infragistics…. " has been left out?
Don’t know any ideas?
I use this cheat sheet:
using Infragistics.Win.UltraWinToolbars; // Add to the “using” section
private static void AddToolTag()
{
// ----------------------------------------------------------------------------
// Create a PopupMenuTool.
PopupMenuTool varActionMenu;
varActionMenu = (PopupMenuTool)baseToolbarsManager.Tools["ActionsMenu"];
// Create a some tools and add them to the menu .
ButtonTool menuButton1 = new ButtonTool("DeleteRecTool");
ButtonTool retButton = new ButtonTool("RetrieveTool");
menuButton1.SharedProps.Caption = "Delete Selected Records";
retButton.SharedProps.Caption = "Retrieve Records";
baseToolbarsManager.Tools.Add(retButton);
baseToolbarsManager.Tools.Add(menuButton1);
varActionMenu.Tools.AddTool("RetrieveTool");
varActionMenu.Tools.AddTool("DeleteRecTool");
System.Drawing.Image intFuncImage = EpiUIImages.GetImage("InternalFunction");
Infragistics.Win.Appearance app = new Infragistics.Win.Appearance();
app.Image = intFuncImage;
menuButton1.SharedProps.AppearancesSmall.Appearance = app;
// ----------------------------------------------------------------------------
menuButton1.ToolClick += new ToolClickEventHandler(DelRec_toolclick);
retButton.ToolClick += new ToolClickEventHandler(Ret_toolclick);
}
//Rename a Tool
ButtonTool OrderToolMenu = (ButtonTool)baseToolbarsManager.Tools["NewOrderTool"];
OrderToolMenu.SharedProps.Caption = "My Happy New Order";