Only Frame supports the "menuBar" property. If Console extends Window, you'll
just need to define your own layout for the menu bar. For example, instead of
using a Border as your content component, use a table pane where the first row
contains the menu bar and the second row contains your Border.
G
On May 25, 2011, at 6:39 PM, Patrick Shea wrote:
> I'm trying to have a menu bar created with it's own bxml file and class and
> add them to my main window via a bxml:include instruction but I can't seem to
> find a way to do this.
>
> I used the MenuBars example from the site but the MenuBars class is extending
> Frame and cannot be used within another frame or window..
>
> Anyone as done this before?
>
> This is what I would like to do
>
> <dmx:Console title="DMX Console" maximized="true"
> styles="{padding:{top:0, left:4, bottom:4, right:4},
> showWindowControls:false}" xmlns:bxml="http://pivot.apache.org/bxml"
> xmlns:dmx="org.opentoolbox.dmx.console" xmlns="org.apache.pivot.wtk">
>
> <bxml:include src="menu/menuBars.bxml" />
>
> <Border styles="{backgroundColor:null, padding:2}">
> <TabPane bxml:id="tabPane" />
> </Border>
>
> </dmx:Console>
>