mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 21:55:56 +02:00
lcl: move some form initialization code from TCustomForm.Create to TCustomForm.CreateNew
git-svn-id: trunk@19933 -
This commit is contained in:
parent
72087cf370
commit
0f86b2e7f3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user