fixed setting TMaskEdit.Text while handle not allocated

git-svn-id: trunk@4590 -
This commit is contained in:
mattias 2003-09-09 11:44:56 +00:00
parent 78d8cb65a4
commit 1ac4440607

View File

@ -658,9 +658,11 @@ end;
procedure TCustomMaskEdit.SetEditText(const Value: string);
begin
if GetEditText <> Value then
begin
SetTextBuf(PChar(Value));
if GetEditText <> Value then begin
if HandleAllocated then
SetTextBuf(PChar(Value))
else
inherited Text:=Value;
CheckCursor;
end;
end;