ide, synedit, lcl: don't construct resourceless forms using Create constructor - use CreateNew instead

git-svn-id: trunk@29261 -
This commit is contained in:
paul 2011-01-31 03:38:11 +00:00
parent 8aca325693
commit bfe85e683f
3 changed files with 6 additions and 3 deletions

View File

@ -493,7 +493,8 @@ begin
FHintLock := 0;
BeginFormUpdate;
KeyPreview:= True;
inherited Create(AOwner);
// we have no resource => must be constructed using CreateNew
inherited CreateNew(AOwner, 1);
FItemList := TStringList.Create;
BorderStyle := bsNone;
FormStyle := fsSystemStayOnTop;

View File

@ -428,7 +428,8 @@ end;
constructor TMainIDEBar.Create(TheOwner: TComponent);
begin
inherited Create(TheOwner);
// This form has no resource => must be constructed using CreateNew
inherited CreateNew(TheOwner, 1);
end;
procedure TMainIDEBar.HideIDE;

View File

@ -29,7 +29,8 @@ constructor THintWindow.Create(AOwner: TComponent);
var
TheTimer: TCustomTimer;
begin
inherited Create(AOwner);
// THintWindow has no resource => must be constructed using CreateNew
inherited CreateNew(AOwner, 1);
fCompStyle := csHintWindow;
Parent := nil;
Color := clInfoBk;