[cid:[email protected]]

Screen shot is above.  At the bottom left there is a tab that expands a pane. I 
can give you all the code if you like, let me know.


menu.bxml:

<BoxPane xmlns:bxml="http://pivot.apache.org/bxml";
    xmlns:content="org.apache.pivot.wtk.content"
    xmlns="org.apache.pivot.wtk">
        <TablePane styles="{backgroundColor:'#404040'}">
            <columns>
                <TablePane.Column width="300" />
            </columns>
            <TablePane.Row height="-1">
                <bxml:include src="menu_bar.bxml" inline="true"/>
            </TablePane.Row>
        </TablePane>
</BoxPane>

With dockingwindow.bxml snippet:

<!--<dockable:DockingWindow title="%mainAppTitle"
    maximized="true"
     bxml:id="mainWindow"
     xmlns:bxml="http://pivot.apache.org/bxml";
     xmlns:content="org.apache.pivot.wtk.content"
     xmlns:dockable="dockable"
     xmlns="org.apache.pivot.wtk">
   Docking window content
  <content>
    <TablePane>
      <columns>
        <TablePane.Column width="1*" />
      </columns>
      <rows>
       Main Row
        <TablePane.Row height="1*">
          <SplitPane bxml:id="outputToolWindowSplitPane" orientation="vertical" 
splitRatio="1" locked="true" 
styles="{splitterHandlePrimaryColor:'#0000F0',splitterThickness:0}">
            <left>
              <TablePane>
                <columns>--> ..............


DockingWindow.java is verbatim form Oliver's post.



Snippet code from startup method:

DockingWindow dockingWindow;

            try {
                dockingWindow = 
(DockingWindow)bxmlSerializer.readObject(MainWindow.class, 
"dockable/dockingWindow.bxml");
            } catch (SerializationException exception) {
                throw new RuntimeException(exception);
            } catch (IOException exception) {
                throw new RuntimeException(exception);
            }

            Component menuBar;

              try {
                  menuBar = 
(Component)bxmlSerializer.readObject(MainWindow.class, "menus.bxml");
                } catch(IOException exception) {
                    throw new RuntimeException(exception);
                } catch(SerializationException exception) {
                    throw new RuntimeException(exception);
                }

            Window mainWindow = new Window();
            mainWindow.setContent(menuBar);

            dockingWindow.setTitle("MainWindow");
            dockingWindow.setLocation(x, y);
            mainWindow.open(display);
            dockingWindow.open(display);

.

From: Roger L. Whitcomb [mailto:[email protected]]
Sent: Thursday, March 07, 2013 2:20 PM
To: [email protected]
Subject: RE: windows within windows

Most likely you would want to use a TablePane to manage the layout within your 
main window.   You would have a TablePane with two rows:  the top row for the 
menu bar, and the bottom row for your docking window.

If you could provide a simple screen shot, or your existing bxml code we could 
perhaps help more.

~Roger Whitcomb

<<inline: image002.jpg>>

Reply via email to