mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 03:31:19 +02:00
win32 interface: implemented TEdit.EchoMode=emNone as PassWordChar=#32 (bug #7705)
git-svn-id: trunk@10268 -
This commit is contained in:
parent
70ac84f4fb
commit
a4f24ffb45
@ -275,6 +275,8 @@ procedure TCustomEdit.SetPasswordChar(const AValue: Char);
|
||||
begin
|
||||
if FPasswordChar=AValue then exit;
|
||||
FPasswordChar:=AValue;
|
||||
if FPasswordChar=#0 then
|
||||
EchoMode:=emNormal;
|
||||
if HandleAllocated then
|
||||
TWSCustomEditClass(WidgetSetClass).SetPasswordChar(Self, AValue);
|
||||
end;
|
||||
|
@ -858,7 +858,10 @@ begin
|
||||
end;
|
||||
|
||||
class procedure TWin32WSCustomEdit.SetEchoMode(const ACustomEdit: TCustomEdit; NewMode: TEchoMode);
|
||||
const
|
||||
PassWordChar : array[TEchoMode] of char = (#0, ' ','*');
|
||||
begin
|
||||
ACustomEdit.PasswordChar := PassWordChar[NewMode];
|
||||
end;
|
||||
|
||||
class procedure TWin32WSCustomEdit.SetMaxLength(const ACustomEdit: TCustomEdit; NewLength: integer);
|
||||
|
Loading…
Reference in New Issue
Block a user