Hey,
I did a quick check on whats going on. The problem is clear to me now:

Using e.g. the virtual select box as child control changes its appearance key 
from the default "virtual-selectbox" to "widget/dummy" in the given sample. 
Usually, that will not work but the virtual select box has a default appearance 
which is "virtual-selectbox. This id will be used if no other is found. 
For the arrow, the same is true. The widget itself is a plain image and will 
also have a new appearance key: "widget/dummy/arrow". This will also lead to a 
fallback to the default id which is "image" and not "virtual-selectbox/arrow". 
Thats why the image is gone because the src property definition is ofc. not in 
the generic image appearance.
As a workaround, you can set the appearance of the arrow child control:

control.getChildControl("arrow").setAppearance("virtual-selectbox/arrow");

I'm not sure if its possible at all to have the proper default id if its a 
child control. Might be worth a bug report to find out. ;)

Regards,
Martin


Am 29.08.2012 um 08:23 schrieb Tobias Oetiker <[email protected]>:

> Today Martin Wittemann wrote:
> 
>> Ah, yes. I remember that in some cases, it was not possible to
>> detect the former appearance. If you can supply a sample, I check
>> for the reason why the fallback could not work.
> 
> that would be this here http://tinyurl.com/d5hrqdk
> 
> cheers
> tobi
>> 
>> 
>> Am 29.08.2012 um 07:57 schrieb Tobias Oetiker <[email protected]>:
>> 
>>> Hi Martin,
>>> 
>>> Today Martin Wittemann wrote:
>>> 
>>>> Hey, Hm, that should work out of the box as far as I can
>>>> remember. We do have a fallback implementation if there is not
>>>> appearance for the child control, we check if the original
>>>> appearance applies. I quite some time ago I did something in that
>>>> area so I might be wrong. Is that true for every child control
>>>> you create?
>>> 
>>> often they work fine ... they do get some appearance applied
>>> and some fails ...
>>> 
>>> it might be connected to the appearance of controls that have
>>> child controls themselves ...
>>> 
>>> the case where I saw this problem last was the VirtualSelectBox ... it
>>> looked like a button when used as a childcontrol ...
>>> 
>>> the button on the other hand looks as before
>>> 
>>> cheers
>>> tobi
>>> 
>>>> Regards,
>>>> Martin
>>>> 
>>>> Am 28.08.2012 um 15:16 schrieb Tobias Oetiker <[email protected]>:
>>>> 
>>>>> Hi,
>>>>> 
>>>>> I quite like the widget with childcontrols approach for creating my
>>>>> uis ... BUT eventhough I have not created any special theming
>>>>> properties, the included child widgets tend to loose part of their
>>>>> design in the process ...
>>>>> 
>>>>> how can I use controls as child widgets and have them  continue to
>>>>> use their normal theming ?
>>>>> 
>>>>> cheers
>>>>> tobi
>>>>> --
>>>>> Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
>>>>> http://it.oetiker.ch [email protected] ++41 62 775 9902 / sb: -9900
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> Live Security Virtual Conference
>>>>> Exclusive live event will cover all the ways today's security and
>>>>> threat landscape has changed and how IT managers can respond. Discussions
>>>>> will include endpoint security, mobile security and the latest in malware
>>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>>>> _______________________________________________
>>>>> qooxdoo-devel mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> Live Security Virtual Conference
>>>> Exclusive live event will cover all the ways today's security and
>>>> threat landscape has changed and how IT managers can respond. Discussions
>>>> will include endpoint security, mobile security and the latest in malware
>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>>> _______________________________________________
>>>> qooxdoo-devel mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>> 
>>>> 
>>> 
>>> --
>>> Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
>>> http://it.oetiker.ch [email protected] ++41 62 775 9902 / sb: -9900
>>> 
>>> ------------------------------------------------------------------------------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond. Discussions
>>> will include endpoint security, mobile security and the latest in malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> qooxdoo-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>> 
>> 
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>> 
>> 
> 
> -- 
> Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
> http://it.oetiker.ch [email protected] ++41 62 775 9902 / sb: -9900
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to