mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-06 07:18:16 +02:00
fixed setting TEdit properties after creating handle
git-svn-id: trunk@3725 -
This commit is contained in:
parent
204bb4d8fa
commit
847131452a
@ -38,6 +38,12 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TCustomEdit.CreateWnd;
|
||||
begin
|
||||
inherited CreateWnd;
|
||||
CNSendMessage(LM_SETPROPERTIES, Self, nil);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
Method: TCustomEdit.Create
|
||||
Params: none
|
||||
@ -222,6 +228,7 @@ procedure TCustomEdit.SetEchoMode(Val : TEchoMode);
|
||||
begin
|
||||
if (Val <> FEchoMode) then begin
|
||||
FEchoMode:= Val;
|
||||
writeln('TCustomEdit.SetEchoMode ',FEchoMode=emPassword,' ',HandleAllocated);
|
||||
if HandleAllocated then
|
||||
CNSendMessage(LM_SETPROPERTIES, Self, nil);
|
||||
end;
|
||||
@ -303,6 +310,9 @@ end;
|
||||
{ =============================================================================
|
||||
|
||||
$Log$
|
||||
Revision 1.15 2002/12/22 23:25:34 mattias
|
||||
fixed setting TEdit properties after creating handle
|
||||
|
||||
Revision 1.14 2002/12/12 17:47:46 mattias
|
||||
new constants for compatibility
|
||||
|
||||
|
@ -437,6 +437,7 @@ type
|
||||
procedure SetReadOnly(Value : Boolean);
|
||||
Protected
|
||||
Procedure DoAutoSize; Override;
|
||||
procedure CreateWnd; override;
|
||||
|
||||
procedure CMTextChanged(Var Message : TLMessage); message CM_TextChanged;
|
||||
procedure Change; dynamic;
|
||||
@ -1386,6 +1387,9 @@ end.
|
||||
{ =============================================================================
|
||||
|
||||
$Log$
|
||||
Revision 1.70 2002/12/22 23:25:34 mattias
|
||||
fixed setting TEdit properties after creating handle
|
||||
|
||||
Revision 1.69 2002/12/12 17:47:45 mattias
|
||||
new constants for compatibility
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user