Print Page | Close Window

How to change menu order

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=10051
Printed Date: 13 November 2024 at 12:40pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to change menu order
Posted By: likigoldenstar
Subject: How to change menu order
Date Posted: 03 April 2008 at 1:51am
Hi,

I inserted Menus like as:

File, Edit, View, Image, Window.

Now, i want to insert "Layer" Menu before "Window". So, i  get "Window" Object and then add "layer" using function add.
But, it doesn't work.

Please help me!
Thanks/Regards

protected XtremeCommandBars.MenuBar mainMenu;
    
                this.Text = "Layer";
                this.mainMenu = value;
                CommandBarPopup window = (CommandBarPopup)this.mainMenu.FindControl(null, ID.TAB_WINDOW, null, null);
              
                this.filterMenu = (CommandBarPopup)this.mainMenu.Controls.Add(XTPControlType.xtpControlPopup, ID.TAB_LAYER, this.Text, window, null);





-------------
Liki goldenstar



Replies:
Posted By: Aaron
Date Posted: 03 April 2008 at 9:51am
Hi,
 
I'm not that great with C# but maybe this will work
 
this.filterMenu = (CommandBarPopup)this.mainMenu.Controls.Add(XTPControlType.xtpControlPopup, ID.TAB_LAYER, this.Text, window.index, null);
 

 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net