mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 21:00:23 +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);
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user