The widget’s code has to provide that state information - a widget can define 
any states it likes so long as they are boolean, and the theme layer will use 
that to calculate styling; it also caches the styling info so if you try 
debugging the appearance you will only see the appearance method being called 
once per unique set of states.  

Many of the widgets use a common set of states (EG hovered, selected, focused, 
etc) but in many cases the similarity in name is by convention rather than a 
core piece of the framework providing all of those states automatically to all 
widgets.

John




On 26/09/2015 16:07, "voger" <vogernewslett...@yahoo.gr> wrote:

>On 26/09/2015 05:18 μμ, Norbert Schröder wrote:
>> Hi,
>>
>> I have never done that before, but you could try and listen for
>> "mouseover"/"mouseout" events and use addState("hovered") and
>> removeState("hovered"), respectively, in order to toggle your widget's
>> appearance.
>>
>> Cheers,
>>
>>     Norbert
>>
>>
>
>Thanks. I just tried that and it works. Maybe it was a misconception 
>from my part but I thought that states were set automatically by the 
>framework somehow. Also I found the source for qx.ui.form.Button and 
>this exactly how it does it.
>
>------------------------------------------------------------------------------
>_______________________________________________
>qooxdoo-devel mailing list
>qooxdoo-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to