I use forms embedded in TTabSheet a lot. But I would like to take
this a step further and compile the forms into a DLL. So the
application would embed the form from the DLL into the TTabSheet.
D5/6/7
Sample below code for illustration.
Thanks,
Jesquard
//Main Program
...
procedure TfrmTestDriver.FormCreate(Sender: TObject);
var
form1: TForm;
begin
//Get the form from the DLL
//???I'm not sure what to do here especially since the
//form in the DLL is NOT the same as TForm (it is
//descended form TFORM).
GetTheForm(form1);
with form1 do
begin
parent := tbsEmbedded;
BorderStyle := bsNone;
align := alClient;
form1.Visible:= TRUE;
application.processmessages;
end;
end;
//DLL program
interface
type
TfrmEmbeddedForm = class(TForm)
...
//I doubt this is the correct signature
procedure GetTheForm(var pvForm: TForm); stdcall;
implementation
procedure GetTheForm(var pvForm: TForm);
begin
//create form and pass it
TfrmEmbeddedForm.Create({handle???});
end;
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/