How to add itemmenu to submenu?

I want to add **DMS - Approved LogAP Invoice in ActionsMenu’s Group menu:
here is the code:

PopupMenuTool varQuoteHeaderTool;
        varQuoteHeaderTool = (PopupMenuTool)baseToolbarsManager.Tools["ActionsMenu"];
		ButtonTool Approved = new ButtonTool("ApprovedLogAPInv");
        Approved.SharedProps.Caption = "**DMS - Approved LogAP Invoice"; // Sets the visible name
        Approved.SharedProps.DisplayStyle = ToolDisplayStyle.ImageAndText;
        Approved.SharedProps.AppearancesSmall.Appearance.Image = EpiUIImages.GetImage("ExternalProcess"); // Item name from the resource
        baseToolbarsManager.Tools.Add(Approved);
		varQuoteHeaderTool.Tools.AddTool("ApprovedLogAPInv");

:smiley: :smiley:Thank you so much and have a good day! :smiling_face_with_three_hearts: :smiling_face_with_three_hearts:

i found this on the Stack website if you like to try it

image

2 Likes

Thanks i made it

PopupMenuTool menuGrouActionTool;
menuGrouActionTool = (PopupMenuTool)baseToolbarsManager.Tools["GroupTool"];//Chú ý GroupTool là name của menu Group debug hoặc dùng message show để lấy đc thông tin này
		//bổ sung menu Approved
		ButtonTool Approved = new ButtonTool("ApprovedLogAPInv");
        Approved.SharedProps.Caption = "**DMS - Approved LogAP Invoice"; // Sets the visible name
        Approved.SharedProps.DisplayStyle = ToolDisplayStyle.ImageAndText;
        Approved.SharedProps.AppearancesSmall.Appearance.Image = EpiUIImages.GetImage("ExternalProcess"); // Item name from the resource
        baseToolbarsManager.Tools.Add(Approved);
		menuGrouActionTool.Tools.AddTool("ApprovedLogAPInv");

:smiling_face_with_three_hearts: :smiling_face_with_three_hearts: Thank you so much have a good day! :smiley: :smiley:

2 Likes