pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roger and Beth Whitcomb <RogerandB...@rbwhitcomb.com>
Subject Re: windows within windows
Date Fri, 08 Mar 2013 17:15:00 GMT
Ah, right, so you should put the menu bar inside your dockingWindow.bxml 
as the first row of the TablePane in there.

On 3/7/13 5:11 PM, Schwartz, Cynthia L wrote:
>
> But dockingWindow.bxml is based on a Window not a TablePane. There is 
> a DockingWindow class which extends Window.
>
> ?
>
> Cynthia
>
> *From:*Roger L. Whitcomb [mailto:Roger.Whitcomb@actian.com]
> *Sent:* Thursday, March 07, 2013 4:19 PM
> *To:* user@pivot.apache.org
> *Subject:* RE: windows within windows
>
> Ah, then you can take out the Window and "content" elements of your 
> dockableWindow.bxml and just leave the TablePane in there.
>
> *~*Roger
>
> *From:*Schwartz, Cynthia L [mailto:cynthia.l.schwartz@intel.com]
> *Sent:* Thursday, March 07, 2013 3:58 PM
> *To:* user@pivot.apache.org <mailto:user@pivot.apache.org>
> *Subject:* RE: windows within windows
>
> That doesn't work....error is :
>
> (tried with and without the content namespace)
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <Window maximized="true"
>
> xmlns:bxml="http://pivot.apache.org/bxml"
>
> xmlns:content="org.apache.pivot.wtk.content"
>
> xmlns="org.apache.pivot.wtk">
>
> <content>
>
> <TablePane styles="{backgroundColor:#404040}">
>
> <columns>
>
> <TablePane.Column width="1*"/>
>
> </columns>
>
> <rows>
>
> <TablePane.Row height="-1">
>
> <bxml:include src="menu_bar.bxml" inline="true"/>
>
> </TablePane.Row>
>
> <TablePane.Row height="1*">
>
> <bxml:include src="dockable/dockingWindow.bxml" inline="true"/>
>
> </TablePane.Row>
>
> </rows>
>
> </TablePane>
>
> </content>
>
> </Window>
>
> *From:*Roger L. Whitcomb [mailto:Roger.Whitcomb@actian.com]
> *Sent:* Thursday, March 07, 2013 3:00 PM
> *To:* user@pivot.apache.org <mailto:user@pivot.apache.org>
> *Subject:* RE: windows within windows
>
> Okay, I see. So, what you need to do is have an outer piece that wraps 
> both your menu and your dockable window within itself, and make that 
> the only window inside your display.  Something like this:
>
> *window.bxml:*
>
> <Window xmlns:bxml=...
>
> <TablePane styles=...>
>
>                <columns>
>
> <TablePane.Column width="1*"/>
>
> </columns>
>
> <rows>
>
> <TablePane.Row height="-1">
>
> <bxml:include src="menu_bar.bxml" inline="true"/>
>
> </TablePane.Row>
>
> <TablePane.Row height="1*">
>
> <bxml:include src="dockable/dockingWindow.bxml" inline="true"/>
>
> </TablePane.Row>
>
> </rows>
>
> </TablePane>
>
> </Window>
>
> Then in your startup method, just load this "window.bxml" as the only 
> one and open it.
>
> HTH,
>
> *~*Roger Whitcomb**
>


Mime
View raw message