win32: Invalidate conrol after setting PassWordChar, otherwise the changes do not propagate immediately.

Fixes issue #0023170.

git-svn-id: trunk@39621 -
This commit is contained in:
bart 2012-12-22 14:40:18 +00:00
parent 0df6e1f978
commit 5b55b8bf05

View File

@ -1223,6 +1223,8 @@ end;
class procedure TWin32WSCustomEdit.SetPasswordChar(const ACustomEdit: TCustomEdit; NewChar: char);
begin
SendMessage(ACustomEdit.Handle, EM_SETPASSWORDCHAR, WParam(NewChar), 0);
//it does not propagate immediately to the control otherwise...
ACustomEdit.Invalidate;
end;
class procedure TWin32WSCustomEdit.SetReadOnly(const ACustomEdit: TCustomEdit; NewReadOnly: boolean);