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?
> Hi
>
> I guess you misunderstood the Stack widget.
> It doesn't actually stack widgets on top of each other. It's more like:
> one widget is visible at a time. The others aren't rendered at all,
> therefore you won't see them, no mater what you set your
> background-color to.
>
> Regards - Roman
>
> f.taebi wrote:
>   
>> Hi,
>>
>> here is a snippet of code. You can directly paste it into the 
>> playground. It explains the problem.
>> There are two Composites in a Stack. You can switch between the two 
>> composites. The background of the second Composite is set to 
>> "transparent", but the layer behind it cannot be seen. So whats the 
>> meaning of "transparent" ?
>>
>> // code
>>            var root = this.getRoot();
>>                       var button1 = new qx.ui.form.Button("switch to 
>> second layer");
>>            button1.addListener("execute", 
>> function(e){stack.setSelected(c2);});
>>            var button2 = new qx.ui.form.Button("switch to first layer");
>>            button2.addListener("execute", 
>> function(e){stack.setSelected(c1);});
>>                       var c1 = new qx.ui.container.Composite(new 
>> qx.ui.layout.VBox(10));
>>            var c2 = new qx.ui.container.Composite(new 
>> qx.ui.layout.VBox(10));
>>            var atom1 = new qx.ui.basic.Atom("logo", 
>> "http://resources.qooxdoo.org/images/logo.gif";);
>>            var label2 = new qx.ui.basic.Label("i want this layer to be 
>> transparent");
>>            c1.add(atom1);             c1.add(button1);
>>            c2.add(label2);
>>            c2.add(button2);
>>            c2.setBackgroundColor("transparent");
>>
>>            var stack = new qx.ui.container.Stack();
>>            stack.add(c1);
>>            stack.add(c2);
>>                       root.add(stack);
>>
>> //end
>>
>>
>> Farhad
>>
>>
>>     
>>> Hi Farhad,
>>>   
>>>       
>>>> You can use any container e.g. Stack, Composite, Scroll ... . I already 
>>>> tried using "null" but it ends with the same result: default grey 
>>>> background.
>>>>   
>>>>     
>>>>         
>>> That is strange. The default for the Composite is already transparent. 
>>> Can you post some code, which demonstrates your problem? Ideal would be 
>>> code we could paste into the playground 
>>> <http://demo.qooxdoo.org/current/playground/#Hello_World>.
>>>
>>> Best Fabian
>>>
>>>
>>>   
>>>       
>>>>> When I use container, they don't have a background color by default. 
>>>>> What container are you using that has a color? Try using 'null' as the 
>>>>> background color, that will remove all references.
>>>>>
>>>>> Jim
>>>>>
>>>>>
>>>>>
>>>>> On Sat, Feb 7, 2009 at 10:31 AM, f.taebi <[email protected] 
>>>>> <mailto:[email protected]>> wrote:
>>>>>
>>>>>     Hi,
>>>>>
>>>>>     im trying to set the background color of a container (Composiste or
>>>>>     whatever ) to "transparent" to make covered widgets visible. The
>>>>>     problem
>>>>>     is that it doesnt change anything i.e. the container doesnt become
>>>>>     transparent and everything is covered by the default grey background
>>>>>     color. So whats the meaning of "transparent" under qooxdoo? And
>>>>>     how can
>>>>>     i achieve the transparency alternatively without inserting divs or
>>>>>     something like that?
>>>>>
>>>>>     Thanks,
>>>>>
>>>>>     Farhad
>>>>>
>>>>>     
>>>>> ------------------------------------------------------------------------------
>>>>>     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]
>>>>>     <mailto:[email protected]>
>>>>>     https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> 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
>>>>>   
>>>>>     
>>>>>       
>>>>>           
>>>> ------------------------------------------------------------------------------
>>>> 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
>>>>
>>>>
>>>>   
>>>>     
>>>>         
>>>   
>>>       
>> ------------------------------------------------------------------------------
>> 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
>>
>>     
>
> ------------------------------------------------------------------------------
> 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
>   


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

Reply via email to