Hi Klaus,

you can set a horizontal alignment of each child by using the property 
"alignX" (see code below for an example).

For more details take a look at the API Viewer 
(http://demo.qooxdoo.org/current/apiviewer/#qx.ui.layout.VBox~alignX)

Cheers,
Chris

Code:
=================================
var layout = new qx.ui.layout.VBox();
layout.setAlignX("center");
     
var composite = new qx.ui.container.Composite().set({});
composite.setLayout(layout);
     
composite.add(new qx.ui.basic.Label("Simple text label"));
composite.add(new qx.ui.basic.Label("Simple text label (longer)"));
composite.add(new qx.ui.basic.Label("Simple text label"));
     
var doc = this.getRoot();
doc.add(composite, {left: 100, top: 50});
=================================

Klaus-F. Kaal schrieb:
> Hi,
>
> that should be an easy one, but I could not find the description in 
> the documentation or in the demo:
>
> I have a VBox where I want to add a centered headline as a 
> qx.ui.basic.Label on top. But whatever I try, I cannot do anything 
> else than prosition it absolutely.
>
> Can you help? Thanks
> -- 
>  
> *Klaus-F. Kaal*
> Geschäftsführer
>  
> *TIMO/logic/ GmbH*
> Singener Str. 42d
> D-78256 Steisslingen
>  
> phone +49 7738 97096
> fax +49 7738 97094
> web www.timologic.com <http://www.timologic.com/>
> mail [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>  
> Handelsregister: Singen HRB 1795
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>   


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to