fixed deleting lookup form when form is deleted

git-svn-id: trunk@3685 -
This commit is contained in:
mattias 2002-12-03 17:40:37 +00:00
parent 022d633371
commit 622409a368
2 changed files with 5 additions and 1 deletions

View File

@ -670,6 +670,8 @@ Begin
if i>AForm.ComponentCount-1 then
i:=AForm.ComponentCount-1;
end;
if PropertyEditorHook.LookupRoot=AForm then
PropertyEditorHook.LookupRoot:=nil;
if not (AForm is TForm) then
writeln('WARNING: TCustomFormEditor.DeleteControl ',AForm.ClassName);
JITFormList.DestroyJITForm(TForm(AForm));

View File

@ -804,7 +804,6 @@ Begin
ParentFont := False;
Ctl3D := True;
// FBorderIcons := [biSystemMenu, biMinimize, biMaximize];
FBorderStyle := bsSizeable;
FWindowState := wsNormal;
// FDefaultMonitor := dmActiveForm;
FIcon := TIcon.Create;
@ -1182,6 +1181,9 @@ end;
{ =============================================================================
$Log$
Revision 1.75 2002/12/03 17:40:37 mattias
fixed deleting lookup form when form is deleted
Revision 1.74 2002/11/30 11:24:05 mattias
removed unused TCustomForm.WMDestroy