I would wrap the BoxPane inside a TablePane with two columns, the first
of width "-1" and second with width "1*", then take the PushButton out
of this BoxPane and make a second BoxPane (the second column of the
TablePane.Row) and put the PushButton inside that and set the alignment
of this BoxPane to horizontal right, vertical center. Something like
this (though I haven't tried it to be sure):
<TablePane>
<columns>
<TablePane.Column width="-1"/>
<TablePane.Column width="1*"/>
</columns>
<rows>
<TablePane.Row>
<BoxPane orientation="horizontal">
<ImageView .../>
<ImageView .../>
...
<ImageView .../>
</BoxPane>
<BoxPane orientation="horizontal" styles="{horizontalAlignment:'right',
verticalAlignment:'center'}">
<PushButton wtkx:id="start" ... />
</BoxPane>
</TablePane.Row>
</rows>
</TablePane>
~Roger
On 5/9/12 3:47 AM, B.L. Zeebub wrote:
Hi
I've got the following snippet;
<BoxPane orientation="horizontal">
<ImageView wtkx:id="car"
styles="{verticalAlignment:'center'}"/>
<ImageView wtkx:id="vci_status"
styles="{verticalAlignment:'bottom'}"/>
<ImageView wtkx:id="pc"
styles="{verticalAlignment:'center'}"/>
<ImageView wtkx:id="pc_status"
styles="{verticalAlignment:'bottom'}"/>
<ImageView wtkx:id="server"
styles="{verticalAlignment:'center'}"/>
<PushButton wtkx:id="start"
buttonData="Start Communications"
styles="{font: {bold:true, size:12}}"/>
</BoxPane>
The problem I've got is that I want the button to appear on the far right of
the window and centered in the box pane. When I try to add
verticalAlignment='center',horizontalAlignment='right' to the styles
attribute I get a runtime exception "Unable to access property "styles" for
type org.apache.pivot.wtk.PushButton."
How do I acheive what I want?
Regards
--
View this message in context:
http://apache-pivot-users.399431.n3.nabble.com/Alignment-tp3973763.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.