I'm using TFrame for the first time and expected it behave lie a TForm, but
have found a strange behaviour when trying to create multiple instances.
Basically TFrame.Create appears to create a phantom component "Frame" which
is a singleton.
Can anyone throw any light on this?
Stephen
-----------------------------------------------------
Example:
type
TMyForm = class(TForm)
...
end;
TMyFrame = class(TFrame)
...
end;
...
var
MyForm1 : TMyForm;
MyForm2 : TMyForm;
MyFrame1 : TMyFrame;
MyFrame2 : TMyFrame;
implementation
procedure SetUp;
begin
MyForm1 := TMyForm;
MyForm2 := TMyForm; // This is OK
MyFrame1 := TMyFrame;
MyFrame2 := TMyFrame; // This fails with "Component MyFrame already
exists".
...
end;
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"