newLISP Fan Club

Forum => newLISP Graphics & Sound => Topic started by: unya on August 03, 2010, 03:16:31 AM

Title: password entry - extend gs:text-field
Post by: unya on August 03, 2010, 03:16:31 AM
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)
Title: Re: password entry - extend gs:text-field
Post by: Lutz on August 03, 2010, 05:46:09 AM
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.
Title: Re: password entry - extend gs:text-field
Post by: unya on August 03, 2010, 05:50:24 PM
Hello Lutz,

Thanks for interest this patch.



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



Thank you.
Title: Re: password entry - extend gs:text-field
Post by: Lutz on August 05, 2010, 07:34:29 AM
you can find the password additions (some more changes were necessary) here:



http://www.newlisp.org/downloads/development/inprogress/
Title: Re: password entry - extend gs:text-field
Post by: unya on August 05, 2010, 06:43:46 PM
I saw the changed, and nice sample.



Thank you,