Recursion on Context Menu

Add-in Express™ Support Service
That's what is more important than anything else

Recursion on Context Menu
 
Dave Gordon




Posts: 17
Joined: 2012-10-17
Thanks for your help and hot fix to get the context menu working properly... however,
I have created a context menu which has 2 popups and a number of items.
The First Popup is found on each submenu - so it can be infinitely traversed.
All the menu items are disabled.

Images are here: http://www.ccs-labs.com/drops/images.aspx

I have also added an image of the designer view of the context menu.

Any ideas?

Dave
Digital Forensic Software Developer
WWW.CCS-LABS.COM
Posted 25 Oct, 2012 15:14:35 Top
Andrei Smolin


Add-in Express team


Posts: 15207
Joined: 2006-05-11
Dave,

Can you please post or send the InitializeComponent method of your IE Module?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 26 Oct, 2012 00:31:18 Top
Dave Gordon




Posts: 17
Joined: 2012-10-17
This is all designer generated:


public IEModule()
        {
            InitializeComponent();
            //Please write any initialization code in the OnConnect event handler
        }
        private ImageList imageList1;
        private ADXIEContextMenuPopupItem adxieContextMenuPopupItem1;
        private ADXIEMenuItem adxieMenuItem1;
        private ADXIESeparatorMenuItem adxieSeparatorMenuItem2;
        private ADXIEPopupMenuItem adxiePopupMenuItem1;
        private ADXIEMenuItem adxieMenuItem2;
        private ADXIEMenuItem adxieMenuItem3;
        private ADXIEMenuItem adxieMenuItem4;
        private ADXIESeparatorMenuItem adxieSeparatorMenuItem3;
        private ADXIEMenuItem adxieMenuItem5;
        private ADXIEHTMLDocEvents adxiehtmlDocEvents1;
 
        public IEModule(IContainer container)
        {
            container.Add(this);
 
            InitializeComponent();
            //Please write any initialization code in the OnConnect event handler
        }
Digital Forensic Software Developer
WWW.CCS-LABS.COM
Posted 26 Oct, 2012 03:42:26 Top
Andrei Smolin


Add-in Express team


Posts: 15207
Joined: 2006-05-11
Right-click InitializeComponent in the code above and choose Go To Definition in the context menu.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 26 Oct, 2012 03:49:35 Top
Dave Gordon




Posts: 17
Joined: 2012-10-17
Ah sorry, I misunderstood:


/// <summary>
        /// Required by designer support - do not modify
        /// the following method
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(IEModule));
            this.imageList1 = new System.Windows.Forms.ImageList(this.components);
            this.adxiehtmlDocEvents1 = new AddinExpress.IE.ADXIEHTMLDocEvents(this.components);
            this.adxieContextMenuPopupItem1 = new AddinExpress.IE.ADXIEContextMenuPopupItem(this.components);
            this.adxieMenuItem1 = new AddinExpress.IE.ADXIEMenuItem(this.components);
            this.adxiePopupMenuItem1 = new AddinExpress.IE.ADXIEPopupMenuItem(this.components);
            this.adxieSeparatorMenuItem2 = new AddinExpress.IE.ADXIESeparatorMenuItem(this.components);
            this.adxieMenuItem2 = new AddinExpress.IE.ADXIEMenuItem(this.components);
            this.adxieMenuItem3 = new AddinExpress.IE.ADXIEMenuItem(this.components);
            this.adxieMenuItem4 = new AddinExpress.IE.ADXIEMenuItem(this.components);
            this.adxieSeparatorMenuItem3 = new AddinExpress.IE.ADXIESeparatorMenuItem(this.components);
            this.adxieMenuItem5 = new AddinExpress.IE.ADXIEMenuItem(this.components);
            // 
            // imageList1
            // 
            this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
            this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
            this.imageList1.Images.SetKeyName(0, "Alert.png");
            this.imageList1.Images.SetKeyName(1, "Account.png");
            this.imageList1.Images.SetKeyName(2, "Account Alt.png");
            this.imageList1.Images.SetKeyName(3, "Add.png");
            this.imageList1.Images.SetKeyName(4, "Remove.png");
            // 
            // adxieContextMenuPopupItem1
            // 
            this.adxieContextMenuPopupItem1.Caption = "Report This";
            this.adxieContextMenuPopupItem1.Items.Add(this.adxieMenuItem1);
            this.adxieContextMenuPopupItem1.Items.Add(this.adxieSeparatorMenuItem2);
            this.adxieContextMenuPopupItem1.Items.Add(this.adxiePopupMenuItem1);
            // 
            // adxieMenuItem1
            // 
            this.adxieMenuItem1.Caption = "Report This Now";
            this.adxieMenuItem1.Image = 0;
            this.adxieMenuItem1.ImageList = this.imageList1;
            this.adxieMenuItem1.Items = null;
            this.adxieMenuItem1.OnClickEx += new AddinExpress.IE.ADXIEMenuItemClickEx_EventHandler(this.adxieMenuItem1_OnClickEx);
            // 
            // adxiePopupMenuItem1
            // 
            this.adxiePopupMenuItem1.Caption = "My Account";
            this.adxiePopupMenuItem1.Items.Add(this.adxieMenuItem2);
            this.adxiePopupMenuItem1.Items.Add(this.adxieMenuItem3);
            this.adxiePopupMenuItem1.Items.Add(this.adxieMenuItem4);
            this.adxiePopupMenuItem1.Items.Add(this.adxieSeparatorMenuItem3);
            this.adxiePopupMenuItem1.Items.Add(this.adxieMenuItem5);
            // 
            // adxieSeparatorMenuItem2
            // 
            this.adxieSeparatorMenuItem2.Caption = "";
            this.adxieSeparatorMenuItem2.Items = null;
            // 
            // adxieMenuItem2
            // 
            this.adxieMenuItem2.Caption = "Go To My Account";
            this.adxieMenuItem2.Image = 2;
            this.adxieMenuItem2.ImageList = this.imageList1;
            this.adxieMenuItem2.Items = null;
            // 
            // adxieMenuItem3
            // 
            this.adxieMenuItem3.Caption = "Register My Account";
            this.adxieMenuItem3.Image = 3;
            this.adxieMenuItem3.ImageList = this.imageList1;
            this.adxieMenuItem3.Items = null;
            // 
            // adxieMenuItem4
            // 
            this.adxieMenuItem4.Caption = "Login";
            this.adxieMenuItem4.Image = 1;
            this.adxieMenuItem4.ImageList = this.imageList1;
            this.adxieMenuItem4.Items = null;
            // 
            // adxieSeparatorMenuItem3
            // 
            this.adxieSeparatorMenuItem3.Caption = "";
            this.adxieSeparatorMenuItem3.Items = null;
            // 
            // adxieMenuItem5
            // 
            this.adxieMenuItem5.Caption = "Delete My Account";
            this.adxieMenuItem5.Image = 4;
            this.adxieMenuItem5.ImageList = this.imageList1;
            this.adxieMenuItem5.Items = null;
            // 
            // IEModule
            // 
            this.ContextMenu.Add(this.adxieContextMenuPopupItem1);
            this.HandleShortcuts = true;
            this.LoadInMainProcess = false;
            this.ModuleName = "ReportThis2";

        }
        #endregion
Digital Forensic Software Developer
WWW.CCS-LABS.COM
Posted 26 Oct, 2012 03:58:19 Top
Sergey Grischenko


Add-in Express team


Posts: 7202
Joined: 2004-07-05
Hi Dave,

Thank you for the bug report. I will try to fix it as soom as possible.
Posted 26 Oct, 2012 05:15:03 Top
Sergey Grischenko


Add-in Express team


Posts: 7202
Joined: 2004-07-05
Hi Dave,

I have just sent you a solution. Please check your inbox.
Posted 26 Oct, 2012 06:58:16 Top
Dave Gordon




Posts: 17
Joined: 2012-10-17
Yep - that did the trick Sergey - it is working now.
So now the hard part - writing the functionality !

Thanks for your help.

Dave
Digital Forensic Software Developer
WWW.CCS-LABS.COM
Posted 26 Oct, 2012 07:26:53 Top
Andrei Smolin


Add-in Express team


Posts: 15207
Joined: 2006-05-11
Thank you for letting us know.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 26 Oct, 2012 07:39:18 Top