Are you testing this inside FireFox? There is a known FireFox bug that
effects the carat in edit boxes. If you check the archives you will find
some previous talk on this. Basically, FireFox hides the carat (cursor). I
think someone found a work around, but I have not tried it yet.

Jim Hunter
Jim's Delphi for PHP Blog <http://www.myblogthoughts.com/wp/?cat=2>

On 4/3/07, Leander Hanwald <[EMAIL PROTECTED]> wrote:

Hi @ all

I have a small problem with the focus handling. It simply didn't work for
me ;)

I have a atom object with an added label and an added (but hidden)
editfield. (I'm not sure if this is the best way, but it seems to work in
the rest for me).
When the user clicks on the atom (or label, but it seems that allways the
atom fires the event) the label is hidden (setDisplay(false)) and the
editfield shown (setDisplay(true))

But how can I set the focus (the blinking cursor) inside of the editfield
when it appears?

I tried it with this code:

this._editField.setFocused(true);
this._editField.focus();

I also checked the sourcecode of qooxdoo but could not find another
relevant function for that.

In my example the editfield is shown, but not focused. Any ideas?
_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to