# Menubar component

**URL:** <https://forum.kirupa.com/t/menubar-component/153870>\
**Category:** Uncategorized\
**Created:** [July 5, 2005, 1:53pm UTC](https://forum.kirupa.com/t/menubar-component/153870 "2005-07-05T13:53:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![batmitra](https://avatars.discourse-cdn.com/v4/letter/b/85e7bf/32.png) [@batmitra](https://forum.kirupa.com/u/batmitra)\
**Post date:** [July 5, 2005, 1:53pm UTC](https://forum.kirupa.com/t/menubar-component/153870/1 "2005-07-05T13:53:57Z")

</div>

hi everyone

i know how to work with this componente, create menus and menuitems , but i’d like to know how can we see in what index are we gonna add a menuitem?

I 'll explain

I’m building a menubar that i want to be able to update on the fly , without having to modify any xml file , but i can’t seem to figure out aou to find the index of the menu i want .

for instance if i have a menu with this options

File -\>New-\>text file  
pdf file

how do i know wich is the index of option “pdf file” ?
