Page 1 of 1

password entry - extend gs:text-field

Posted: Tue Aug 03, 2010 10:16 am
by unya
Hello All,

gs: key-event, gs-set-text when you use a password because you have to build on a string, you may get a little annoying.

JPasswordField using the text-field guiserver tried changing features.

Thanks,

---- Ex 1 ----
(gs:text-field 'PassField 16)
(gs:set-echo-char 'PassField "*")

---- Ex 2 ----
(gs:text-field 'PassField 16 "*")

---- Clear Text ----
(gs:unset-echo-char 'PassField)

Re: password entry - extend gs:text-field

Posted: Tue Aug 03, 2010 12:46 pm
by Lutz
Thanks, something like this will be added in a future version.

Please attach the entire changed guiserver.lsp and TextFieldWidget.java. My work flow doesn't allow patches.

Re: password entry - extend gs:text-field

Posted: Wed Aug 04, 2010 12:50 am
by unya
Hello Lutz,
Thanks for interest this patch.

attached source includes "guiserver.lsp", "TextFieldWidget.java", "Dispatcher.java".

Thank you.

Re: password entry - extend gs:text-field

Posted: Thu Aug 05, 2010 2:34 pm
by Lutz
you can find the password additions (some more changes were necessary) here:

http://www.newlisp.org/downloads/develo ... nprogress/

Re: password entry - extend gs:text-field

Posted: Fri Aug 06, 2010 1:43 am
by unya
I saw the changed, and nice sample.

Thank you,