btw I tested the code you posted and it works in firefox only some time and it not works in chromium. Do you encountered similar behavior?
Best regards Petr Kobalicek On Mon, Sep 6, 2010 at 7:38 PM, Petr Kobalíček <[email protected]> wrote: > Hi Ralf, > > thanks for these tips, very valuable to me. I'm going to fill bug > reports tomorrow. > > Best regards > Petr Kobalicek > > On Mon, Sep 6, 2010 at 7:20 PM, Ralf Nieuwenhuijsen <[email protected]> wrote: >> Current workaround: >> var e = new qx.ui.embed.HtmlArea; >> e.addListener('focused', function(){ >> e.addState('focused'); >> }, this); >> e.addListener('focusOut', function(){ >> e.removeState('focused'); >> }, this); >> PS. These event names aren't consistent with the rest of qooxdoo. >> So that should be filed as a bug separately. >> PS2. You can add manual states to all kinds of widgets using the same trick. >> I use it a lot. For example, I have a search field, that updates the table, >> as you type. >> I've added a 'loading' state to the textfield, whenever the table isn't up >> to date anymore. >> This way I can select a different background color, when the table is >> loading the newly typed search-query. >> Greetings, >> Ralf >> >> 2010/9/6 Daniel Wagner <[email protected]> >>> >>> Hi Petr, >>> >>> sure, if you think it would be useful/necessary, go ahead and file a >>> report. Alex is the HtmlArea expert so he'll decide if and when it gets >>> implemented, just be aware that it'll be a few weeks until he can look >>> into it. >>> >>> >>> Regards, >>> Daniel >>> >>> Petr Kobalíc(ek schrieb: >>> > Hi, >>> > >>> > I'd like to use focus while editing html content. >>> > >>> > I have this: >>> > >>> > /* >>> > >>> > --------------------------------------------------------------------------- >>> > HTMLAREA >>> > >>> > --------------------------------------------------------------------------- >>> > */ >>> > >>> > "htmlarea": >>> > { >>> > style: function(states) >>> > { >>> > return { >>> > // HERE, states.focused is never filled. >>> > decorator: states.focused ? "htmlarea-focused": undefined, >>> > backgroundColor : "background-input", >>> > padding: qxet.Util.getTextFieldPadding(states, 0) >>> > }; >>> > } >>> > } >>> > >>> > But it doesn't work. >>> > >>> > Should I report enhancement bug report? >>> > >>> > Best regards >>> > Petr Kobalicek >>> > >>> > >>> > ------------------------------------------------------------------------------ >>> > This SF.net Dev2Dev email is sponsored by: >>> > >>> > Show off your parallel programming skills. >>> > Enter the Intel(R) Threading Challenge 2010. >>> > http://p.sf.net/sfu/intel-thread-sfd >>> > _______________________________________________ >>> > qooxdoo-devel mailing list >>> > [email protected] >>> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >>> > >>> > >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> This SF.net Dev2Dev email is sponsored by: >>> >>> Show off your parallel programming skills. >>> Enter the Intel(R) Threading Challenge 2010. >>> http://p.sf.net/sfu/intel-thread-sfd >>> _______________________________________________ >>> qooxdoo-devel mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> >> >> ------------------------------------------------------------------------------ >> This SF.net Dev2Dev email is sponsored by: >> >> Show off your parallel programming skills. >> Enter the Intel(R) Threading Challenge 2010. >> http://p.sf.net/sfu/intel-thread-sfd >> _______________________________________________ >> qooxdoo-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> >> > ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
