# MenuBar Component Again!

**URL:** <https://forum.kirupa.com/t/menubar-component-again/104296>\
**Category:** Uncategorized\
**Created:** [March 14, 2004, 5:17pm UTC](https://forum.kirupa.com/t/menubar-component-again/104296 "2004-03-14T17:17:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jobbie78](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@jobbie78](https://forum.kirupa.com/u/jobbie78)\
**Post date:** [March 14, 2004, 5:17pm UTC](https://forum.kirupa.com/t/menubar-component-again/104296/1 "2004-03-14T17:17:34Z")

</div>

Anyone know how to add event handlers to a Menu on the MenuBar component.

I know how to do it on MenuItems but I also want to be able to do it on the root Menu…

for example

File - root menu  
Edit - menuItem  
Cut - menuItem  
Copy - menuItem

I want to assign an event handler to “File” but I can’t see a way of doing it. On menuItem’s you assign them an instance name so that’s easy but you can’t do that to the root Menu… any ideas?
