password entry - extend gs:text-field

Guiserver, GTK-server, OpenGL, PostScript,
HTML 5, MIDI, IDE
Locked
unya
Posts: 27
Joined: Fri Feb 26, 2010 8:30 am
Contact:

password entry - extend gs:text-field

Post 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)
Attachments
pass-ext.udiff.gz
(1.36 KiB) Downloaded 497 times

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: password entry - extend gs:text-field

Post 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.

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

Re: password entry - extend gs:text-field

Post by unya »

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 461 times

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: password entry - extend gs:text-field

Post by Lutz »

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

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

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

Re: password entry - extend gs:text-field

Post by unya »

I saw the changed, and nice sample.

Thank you,

Locked