This is perplexing me, and I can't find explanation in the docs.  I have the following...
<menubar id="menubar1" >
    <menu name="menu1" text="menu1" >
        <menuitem name="menuItem1" />
        <menuitem name="menuItem2" />
        <menuitem name="menuItem3" />
    </menu>
</menubar>

How do I reference a <menuitem> from outside the <menubar> ??   
I've used the debug console and subnodes() to try to observe the structure, but it is making no sense to me.  I can only get this far...
lzx> menubar1.subnodes
«Array(4)#79| [#menubar1/@_outerbezel, #menubar1/@_innerbezel, #menubar1/@_face, #menubar1/@mbarcontent]»
lzx> menubar1.mbarcontent.subnodes
«Array(3)#103| [#menubar1/@mbarcontent/@menu1, #menubar1/@mbarcontent/simplelayout, #menubar1/@mbarcontent/menubutton]»
lzx> menubar1.mbarcontent.menu1.subnodes
null

What is this "mbarcontent" node?  I see in the reference page for <menu> where it mentions "parent.owner" but that pertains to already having a reference to the <menuitem> and then accessing the <menu>. 

Is there a better explanation somewhere of the structure?  The explanation "
the parent of a menuitem is not the menu itself, but rather a <floatinglist> that is implicity part of the menu" isn't very clear to me.

Thank you

Reply via email to