Menu items are simply buttons. They can be wired up to actions or you can 
register handlers on them directly. For menus, actions are recommended.

The Java code for the menu bar tutorial creates a set of actions and adds them 
to the named action dictionary. The markup then instantiates Menu.Items and 
associates the items with the actions via the action attribute.

On May 27, 2011, at 2:50 PM, noobmike wrote:

> Hello again! 
> 
> Im trying to put a menu system like the "Menu Bars" tutorial on the Apache
> Pivot website into the App
> that Im making. How ever I dont want it in that format(TabPane) which I dont
> think is the problem. As of now I copied the <MenuBar> portion and stuck it
> in a TablePane column where I want it to be. This gives me the menu in the
> correct spot with a few menu options to choose from. However where the
> problem lies 
> is connecting them to an action. I took the pieces from the java file I
> thought were necessary, and also encorperated the <actionMappings> tags from
> the .bxml file. But still no luck. 
> 
> Im also unsure of the point of the double menuBar tags. 
> <menuBar>
>        <MenuBar> 
> 
> I dont see a namespace for menuBar or anything of that sort, so I am
> confused. I know its necessary, because I took it out and the buttons and
> window of the original example were much different and didnt work. But I am
> unsure of where it comes from.
> 
> If anyone can offer help it would be appreciated as always. 
> 
> Thanks,
> 
> Mike.
> 
> 
> 
> --
> View this message in context: 
> http://apache-pivot-users.399431.n3.nabble.com/Menu-System-tp2994002p2994002.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to