# Help using addMenu function (customizing menu bar)

**URL:** <https://forum.servoy.com/t/help-using-addmenu-function-customizing-menu-bar/17203>\
**Category:** Classic Servoy\
**Created:** [April 29, 2013, 2:07pm UTC](https://forum.servoy.com/t/help-using-addmenu-function-customizing-menu-bar/17203 "2013-04-29T14:07:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![graeme1367242771](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@graeme1367242771](https://forum.servoy.com/u/graeme1367242771)\
**Post date:** [April 29, 2013, 2:07pm UTC](https://forum.servoy.com/t/help-using-addmenu-function-customizing-menu-bar/17203/1 "2013-04-29T14:07:46Z")

</div>

Hello,

I am trying to understand Servoy, my first day, coming from Filemaker and very green…  
I loaded the servoy\_sample\_crm example solution and am viewing it in the Servoy Client. There is a menu bar at the top, and I would like to customize this menu, just as a random starting point to get a feel for Servoy. The online documentation refers to the addMenu function, and I see it listed in the Solution Explorer under plugins/window/menubar, but that is where I lose the trail. How do I actually use this function to change what I see in the Servoy Client? Is there a startup script that runs when you load the solution where you can define all the menus using addMenu?

Yes, very green…  
… but thanks for any clarification/pointers!

---

<div class="post-metadata">

**Author:** ![jbrancoIF](https://avatars.discourse-cdn.com/v4/letter/j/f08c70/32.png) [@jbrancoIF](https://forum.servoy.com/u/jbrancoIF)\
**Post date:** [April 29, 2013, 3:54pm UTC](https://forum.servoy.com/t/help-using-addmenu-function-customizing-menu-bar/17203/2 "2013-04-29T15:54:20Z")

</div>

There’s an onOpen method for each solution/module where you can set your code. Just click the solution on the Solution Explorer and check the Properties tab (on the right).

To change the menu, first you’ll need to get it with plugins.window.getMenuBar();
