On Mon, Feb 9, 2009 at 8:36 AM, f.taebi <[email protected]>wrote:
> Hi Roman,
>
> i understand. But alternatively you can make a Composite and then put a
> smaler Composite upon it. That results in disappearence of the first
> one. How can i prevent it from doing so? And whats the sense of
> "transparent" as background color?
>
Try this program. Notice that the HBox has a background color of blue and
the VBox is transparent. You'll see that "Block 1a" placed in the VBox which
is in the HBox displays in blue since it and its container are transparent,
while all of the other blocks display in their specified color. Does this
help explain the use of "transparent"?
Derrell
/*
#require(qx.log.appender.Native)
#require(qx.log.appender.Console)
*/
qx.Class.define("custom.Application",
{
extend : qx.application.Standalone,
members :
{
main : function()
{
this.base(arguments);
var hBox = new qx.ui.container.Composite(new qx.ui.layout.HBox());
hBox.setBackgroundColor("blue");
this.getRoot().add(hBox, { edge : 10 });
var vBox = new qx.ui.container.Composite(new qx.ui.layout.VBox());
vBox.set(
{
width : 50,
backgroundColor : "transparent"
});
hBox.add(vBox);
var atom = new qx.ui.basic.Atom("Block 1a");
atom.set(
{
height : 50,
backgroundColor : "transparent"
});
vBox.add(atom);
var atom = new qx.ui.basic.Atom("Block 1b");
atom.set(
{
backgroundColor : "purple"
});
vBox.add(atom, { flex : 1 });
var atom = new qx.ui.basic.Atom("Block 2");
atom.set(
{
backgroundColor : "yellow"
});
hBox.add(atom, { flex : 1 } );
var atom = new qx.ui.basic.Atom("Block 3");
atom.set(
{
width : 50,
backgroundColor : "green"
});
hBox.add(atom);
}
}
});
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel