Nevron Forum

Newbie: Creating menus

https://www.nevron.com/Forum/Topic4419.aspx

By Tomas Vera 1 - Saturday, October 30, 2010

Hello All (caution newbie),
I am designing a form and want to add a simple menu structure at design time.
I can add NCommands programmatically, but I am lost when creating menus at design time.

I've added a NCommandBarsManager object to my form (I think I need to to that??).

But I can't seem to figure out how to add commands. Also, are NDockingToolbars added in the same manner?

Can someone point me in the right direction?

Thanks!

-tomas
By Nevron Support - Monday, November 1, 2010

Hi Tomas,

After you add NCommandBarsManager on the form you first need to add NMenuBar or NDockingToolbar where the commands will reside.

You can do that by clicking on the smart tag (the small arrow at the right top corner of the control) and then clicking on Show Editor link or just click on the Show Editor link on the bottom of the NCommandBarsManager Property grid.

Then click on New... button and add tool bar, menu bar or both.

After that you can add command ether by the smart tag on each menubar or toolbar or from the Command property in Property grid.

I hope this helps.

By Tomas Vera 1 - Monday, November 1, 2010

Thanks!! That's what I was looking for.

-tomas