mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-26 11:39:17 +02:00
IDE: new form: using default width,height
git-svn-id: trunk@23187 -
This commit is contained in:
parent
2445aea5ec
commit
d63e8ffbd3
@ -4382,7 +4382,7 @@ begin
|
|||||||
// create jit component
|
// create jit component
|
||||||
CInterface := TComponentInterface(
|
CInterface := TComponentInterface(
|
||||||
FormEditor1.CreateComponent(nil,TComponentClass(AncestorType),
|
FormEditor1.CreateComponent(nil,TComponentClass(AncestorType),
|
||||||
NewUnitInfo.CreateUnitName, new_x, new_y, 400,300));
|
NewUnitInfo.CreateUnitName, new_x, new_y, 0,0));
|
||||||
if CInterface=nil then begin
|
if CInterface=nil then begin
|
||||||
DebugLn(['TMainIDE.CreateNewForm FormEditor1.CreateComponent failed ',dbgsName(TComponentClass(AncestorType))]);
|
DebugLn(['TMainIDE.CreateNewForm FormEditor1.CreateComponent failed ',dbgsName(TComponentClass(AncestorType))]);
|
||||||
exit(mrCancel);
|
exit(mrCancel);
|
||||||
|
Loading…
Reference in New Issue
Block a user