Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - How to change menu order
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to change menu order

 Post Reply Post Reply
Author
Message
likigoldenstar View Drop Down
Newbie
Newbie
Avatar

Joined: 03 April 2008
Location: Malaysia
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote likigoldenstar Quote  Post ReplyReply Direct Link To This Post Topic: How to change menu order
    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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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);
 

 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.