Profile Picture

NMenuBar issues

Posted By Brad Swearingen 13 Years Ago
Author
Message
Brad Swearingen
Posted 13 Years Ago
View Quick Profile
Forum Guru

Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 53, Visits: 3

1) I've been trying to follow the sample titled "Mdi Children Custom Frames".  My first problem is when I went to the Visual Studio 2010 IDE Toolbox to find the NMenuBar that the sample is using it doesn't exist.  All the other N* UI controls seem to be present and I can create them.  I tried the Choose... menu item on the toolbox and it doesn't show an NMenuBar as something that can be added.  Seems like its missing yet I know its not.  How do I create an NMenuBar?

2) I copied and pasted from your sample the NMenuBar into my form and its not behaving as I expect.  On an empty form it sticks it in the middle of the form.  I saw that the menu was added to the form and I subsequently added a NCommandBarsManager (like the sample has) and hand edited the designer .cs file to instead add it to it.  With the menu displayed  I'm having problems with docked panels painting underneath the menu now and figured I should ask for help before spending any more time on this.  I'm using the 2010 Vol1 version of the Nevron UI with C#.  Other things seem to be working fine but I don't understand how to create menus properly.

Thanks for any thought.



Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
Hello Brad,

The best way to create NMenuBar is to drop NCommandBarsManager component on the form and from the the small arrow on the top right corner to choose "Show Editor".
Then from the "Customize CommandBars" dialog choose "New...". In the New toolbar dialog window check "Menu Bar" check box, choose the dock position and click "OK".
Click "Close" button in "Customize CommandBars" dialog.
This way the menu bar should be displayed on your form.
To add commands you can click on the same small arrow which is on the top right corner of the menu bar and choose "Add Command" or from the menu bar's Property Browser Commands property.


Best Regards,
Nevron Support Team



Brad Swearingen
Posted 13 Years Ago
View Quick Profile
Forum Guru

Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 53, Visits: 3

Thanks, that is definately an easy way to create the menu bar.

However, I'm still having problems with it performing as expected.

If after following your instructions I subsequently add a NDockManager and then click on that instances task menu and select "Add panel at left" the new panel is added but it is clipped by the menu bar at the top.  The sample I mentioned in the IDE is not clipped.  I tried reversing the order of these actions and it didn't help.  Been looking around but nothing seems to help.

What are the steps to do this to keep this from clipping the form content?



Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Brad,

Please, check the following topic:

http://forum.nevron.com/shwmessage.aspx?forumid=2&messageid=4950#bm4980



Best Regards,
Nevron Support Team



Brad Swearingen
Posted 13 Years Ago
View Quick Profile
Forum Guru

Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 53, Visits: 3
I was able to determine what the difference was between the sample application and my trying to reproduce its layout in the IDE.  I had to change the NDockManager RootContainerZIndex property.  It defaults to 4 and it needs to be changed to 0.  Changing it to 0 fixes this painting problem.  Sounds like a bug in the Nevron UI suite to me.



Similar Topics


Reading This Topic