Forum > LCL
[SOLVED] TEdit Password character is different from Windows UI
jamestien:
Hello, TEdit password character set to "*", however why it does not show as rounded dot like Windows 11 does?
Didn't notice if it is same as on Windows 10, I already upgraded to Windows 11.
Delphi showed as rounded dot.
AlexTP:
Because '*' is the default value of the TEdit.PasswordChar property.
It is the misfeature of LCL- we cannot pass there WideChar with value >$ff.
jamestien:
--- Quote from: Alextp on January 24, 2022, 03:02:28 pm ---Because '*' is the default value of the TEdit.PasswordChar property.
It is the misfeature of LCL- we cannot pass there WideChar with value >$ff.
--- End quote ---
Thanks for the information, I found that I can use Extended ASCII code (#149 for rounded dot) to substitute. :D It looks better now...
Bart:
#149 is not a valid UTF8 string or character (all strings and chars in LCL are supposed to be UTF8), so it's kind of a miracle that this works at all.
Bart
CM630:
On one hand using ascii in the 21st century seems absurd, but on the other hand #149 occurs to be the same bullet character in CP1250...1256, and maybe even further :o
Navigation
[0] Message Index
[#] Next page