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