Hello Alex,

i thank you very much! Your hint has solved my problem.

Regards, Florian



2009/1/19 Alexander Back <alexander.b...@1und1.de>:
> Hi Florian,
>
> Florian Giesen wrote:
>> Hello Alex,
>>
>> thanks for your help.
>>
>>> Can you post a screenshot to show how your window looks like?
>> http://www.2f-cms.com/userfiles/uploads/screenshots/qooxdoo_StatusWindow01.jpg
> Now I know what the problem is :-)
>
> Normally the children of a window are added to the "pane" of the window.
> So if you write
>
> --snip--
> var myWin = new qx.ui.window.Window("my window");
> myWin.setLayout(new qx.ui.layout.HBox());
>
> var atom = new qx.ui.basic.Atom("myAtom");
> myWin.add(atom);
>
> myWin.open();
> --snip--
>
> The atom widgets gets added to the pane, since the
> "getChildrenContainer" method inside the window widget returns the
> "pane" sub-control. This methods is used for the children control and
> determines where the children widgets are added. This is especially
> important for complex widgets like windows.
>
> So if you want to add you sub-control widgets at startup you have to add
> them by using
>
> --snip--
> _createChildControlImpl : function(id)
>     {
>       var control = null;
>
>       switch(id)
>       {
>         case "atom":
>           control = new qx.ui.basic.Atom();
>           this.getChildrenContainer()._add(control);
>           break;
>
>         case "button":
>           control = new qx.ui.form.Button(this.tr("Close"));
>           this.getChildrenContainer()._add(control);
>           break;
>       }
>
>       return control || this.base(arguments, id);
>     }
> --snip--
>
> Hope this works.
>
> cheers,
>   Alex
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to