You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Jeffrey Law <je...@hotmail.com> on 2014/02/18 16:39:40 UTC

Maximize TablePane in the TabPane

Hi Pivot,
I've tried to extend the sample stock tracker application 
and would like to create a TabPane with few tabs and add the whole page of the stock tracker window into 
the <TabPane.tabData>.
<stocktracker:StockTrackerWindow title="%stockTracker" maximized="true"
    xmlns:bxml="http://pivot.apache.org/bxml"
    xmlns:content="org.apache.pivot.wtk.content"
    xmlns:stocktracker="org.apache.pivot.tutorials.stocktracker"
    xmlns="org.apache.pivot.wtk">
    <TabPane xmlns:bxml="http://pivot.apache.org/bxml"
     xmlns:content="org.apache.pivot.wtk.content"
     xmlns="org.apache.pivot.wtk">
 <BoxPane styles="{horizontalAlignment:'center', verticalAlignment:'center'}">
        <TabPane.tabData>
            <content:ButtonData text="Bell"/>
        </TabPane.tabData>
        <BoxPane styles="{backgroundColor:'#0096D5', horizontalAlignment:'right'}">
 <TablePane>
 :
 :
 </TablePane>
</stocktracker:StockTrackerWindow>
 
The problem is how can I make the stock tracker window (TablePane) maximized in this <TabPane.tabData>?
The tutorial mentioned creating a label and specify the preferred dimension:
<Label text="240x180" preferredWidth="240" preferredHeight="180"/>
But the application will be run in several different platform and screen size and I need to ensure
the tab container is maximized without keeps change the dimension and compiling the program.
 
Any helps and advices would be appreciated!
Jeffrey

 		 	   		  

Re: Maximize TablePane in the TabPane

Posted by Roger and Beth Whitcomb <Ro...@rbwhitcomb.com>.
That's exactly what FillPane is good for. Great!

~Roger

On 2/19/14 8:27 PM, Jeffrey Law wrote:
> I got it myself, just simply just replace the BoxPane with FillPane
> will do!
>
>


RE: Maximize TablePane in the TabPane

Posted by Jeffrey Law <je...@hotmail.com>.
I got it myself, just simply just replace the BoxPane with FillPane will do!