Field type Password
Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller
Field type Password
Just a small one, but it would be nice to have a checkbox to turn a text field into a password box, no more fiddling with doing that manually.
Marcus
-
- VIP Livecode Opensource Backer
- Posts: 183
- Joined: Wed Apr 10, 2013 5:09 pm
Re: Field type Password
I certainly agree with this request. No matter how hard I try, I can never make my password fields look like they should.
Re: Field type Password
after going through the entire forum i came up with a simple way to handle it but it would bring up two points. My way to handle it was to download a ttf called password and set that field to that password then using an installer i was able wrap the ttf up and install with the application. These are the two points. point 1: it would be nice to be able to embed fonts. point 2: it would be simplest to just have a toggle to make a field a password field
-
- Livecode Opensource Backer
- Posts: 3809
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Field type Password
Embedding fonts; cross-platform would really rock!
Re: Field type Password
on keyUp
if the short name of me contains "PassField" then
local i
lock screen
lock messages
repeat with i = 1 to the number of characters in me
if the imagesource of char i of me is not "passwordstar" then // "passwordstar" = image
set the imagesource char i of me to "passwordstar"
end if
end repeat
unlock messages
unlock screen
pass keyUp
else
pass keyUp
end if
end keyUp
if the short name of me contains "PassField" then
local i
lock screen
lock messages
repeat with i = 1 to the number of characters in me
if the imagesource of char i of me is not "passwordstar" then // "passwordstar" = image
set the imagesource char i of me to "passwordstar"
end if
end repeat
unlock messages
unlock screen
pass keyUp
else
pass keyUp
end if
end keyUp
Tom @
http://www.makeshyft.com
---------------------------------
Changing the Future, Today!
http://www.makeshyft.com
---------------------------------
Changing the Future, Today!
Re: Field type Password
There are plenty of ways of doing it with workarounds.
Which is not the point of my original post.
Which is not the point of my original post.
Marcus
-
- Livecode Opensource Backer
- Posts: 3809
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Field type Password
I'm honestly not sure how you could do this without a "blob" font.
Re: Field type Password
I agree that is complicated to have a good password field. Instead of chars should appear aterisks "*", but how to handle backspace,canc,and arrow keys?
It's a lot of lines to write...
It's a lot of lines to write...
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
-
- VIP Livecode Opensource Backer
- Posts: 7022
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Field type Password
It would be very nice to have that as a field property in the engine, but in the meantime this could be handled quite nicely in a behavior script.
Anyone here in a position to take the time to collaborate on one for the community to use?
Anyone here in a position to take the time to collaborate on one for the community to use?
Richard Gaskin
Community volunteer LiveCode Community Liaison
LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
Community volunteer LiveCode Community Liaison
LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/