![]() |
How to change menu order |
Post Reply
|
| Author | |
likigoldenstar
Newbie
Joined: 03 April 2008 Location: Malaysia Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
Topic: How to change menu orderPosted: 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
|
|
![]() |
|
Aaron
Senior Member
Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
Quote Reply
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);
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |