Hi,

> 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."

it's because it hasn't the style properties you are trying to set.

You should try to set alignment/fill properties/styles in Layout
Containers where the PushButton is put.
Or if you don't get the desired effect, try even to nest more
containers (even different types).

In the meantime, it's simpler to play with different options for
example in the Component Explorer sample application, and maybe even
with the BXMLExplorer sample app

Sorry but hadn't more time to be more precise ... maybe someone of us can.
Keep us updated.


Bye,
Sandro

Reply via email to