lcl: move some form initialization code from TCustomForm.Create to TCustomForm.CreateNew

git-svn-id: trunk@19933 -
This commit is contained in:
paul 2009-05-12 02:31:08 +00:00
parent 72087cf370
commit 0f86b2e7f3

View File

@ -1458,9 +1458,6 @@ end;
constructor TCustomForm.Create(AOwner : TComponent);
begin
//DebugLn('[TCustomForm.Create] A Class=',Classname);
FShowInTaskbar := stDefault;
FAllowDropFiles := False;
GlobalNameSpace.BeginWrite;
try
BeginFormUpdate;
@ -1503,6 +1500,7 @@ begin
BeginFormUpdate;
FBorderIcons := [biSystemMenu, biMinimize, biMaximize];
FDefaultMonitor := dmActiveForm;
FShowInTaskbar := stDefault;
// set border style before handle is allocated
if not (fsBorderStyleChanged in FFormState) then
FFormBorderStyle:= bsSizeable;
@ -1530,7 +1528,7 @@ begin
Screen.AddForm(Self);
EndFormUpdate;
FAllowDropFiles := False;
End;
end;
{------------------------------------------------------------------------------
TCustomForm CreateParams