mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 23:40:26 +02:00
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:
parent
0df6e1f978
commit
5b55b8bf05
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user