Hi, perhaps you could use a regular TextField and add an event handler in input that collects the characters in a variable and then 'hides' the user input by changing it to X or something like that.
If this works you could actually use the setPlaceholder() mechanism to set the initial labels. BTW, perhaps the handling of setPlaceholder() should be entered as enhancement bug, as you now can in fact set a placeholder on a PasswordField, although it doesn't make sense to have it hidden ... Also, while the placeholder is indeed reset after clearing the textfield, this only happens after "enter" (or removing the focus by clicking somewhere outside the field) and not when the last character is deleted e.g. with the backspace key. Cheers, Fritz On Wed, 21 Oct 2009, Max Tappenden wrote: > Hi there, > > I want to create a log-in screen for my application, and to have the > username and password labels inside the text fields - they will empty > when you start typing. This seems fairly simple to do for the username > field, an event handler to change the value when the field is > activated. For the password field though, it's not so obvious. Would > the best solution be to swap a TextField for a PasswordField when it's > selected? > > In case that's confused - I've been up 20 hours - I'm basically trying > to achieve the same effect that you get on the me.com login form. > > Best regards > Max Tappenden > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > -- Oetiker+Partner AG tel: +41 62 775 9903 (direct) Fritz Zaucker +41 62 775 9900 (switch board) Aarweg 15 +41 79 675 0630 (mobile) CH-4600 Olten fax: +41 62 775 9905 Schweiz web: www.oetiker.ch ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
