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