password entry - extend gs:text-field

Guiserver, GTK-server, OpenGL, PostScript,
HTML 5, MIDI, IDE

password entry - extend gs:text-field

Postby unya » Tue Aug 03, 2010 10:16 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)
Attachments
pass-ext.udiff.gz
(1.36 KiB) Downloaded 214 times
unya
 
Posts: 27
Joined: Fri Feb 26, 2010 8:30 am

Re: password entry - extend gs:text-field

Postby Lutz » Tue Aug 03, 2010 12:46 pm

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.
Lutz
 
Posts: 5258
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California

Re: password entry - extend gs:text-field

Postby unya » Wed Aug 04, 2010 12:50 am

Hello Lutz,
Thanks for interest this patch.

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

Thank you.
Attachments
pass-ext.tar.gz
guiserver.lsp
java/Dispatcher.java
java/TextFieldWidget.java
(37.17 KiB) Downloaded 183 times
unya
 
Posts: 27
Joined: Fri Feb 26, 2010 8:30 am

Re: password entry - extend gs:text-field

Postby Lutz » Thu Aug 05, 2010 2:34 pm

you can find the password additions (some more changes were necessary) here:

http://www.newlisp.org/downloads/develo ... nprogress/
Lutz
 
Posts: 5258
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California

Re: password entry - extend gs:text-field

Postby unya » Fri Aug 06, 2010 1:43 am

I saw the changed, and nice sample.

Thank you,
unya
 
Posts: 27
Joined: Fri Feb 26, 2010 8:30 am


Return to newLISP Graphics & Sound

Who is online

Users browsing this forum: No registered users and 1 guest

cron