If you embed the packaged form this way, can you drag things to it from the
host form? Does it communicate with the host form like it's a host form object,
or does it all have to be done through interfaces?
DJS
Pavel Evarestov <[EMAIL PROTECTED]> wrote:
Hi!
>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
Why don't you use packages? They simplify things a lot!
a)In a package:
Unit MyTabForm;
interface
TMyTabForm=class(TForm)
....
end;
b) In your application:
...
implementation
uses MyTabForm;
procedure TfmTestTab.FormCreate(Sender: TObject);
var
form1: TMyTabForm;
begin
form1:=TMyTabForm.Create(Self);
with form1 do
begin
Parent := tbsEmbedded;
BorderStyle := bsNone;
Align := alClient;
form1.Visible:= TRUE;
end;
Application.ProcessMessages;
end;
That's all - no exported procedures and functions, no problems with
creating corresponding form object in a DLL and consequent monitoring of
its proper destruction. All functionality of embedded form is accessible
right in the needed place directly without Setters and Getters and so
forth.
Best regards, Pavel Evarestov
[Non-text portions of this message have been removed]
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups SponsorADVERTISEMENT
---------------------------------
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 the Yahoo! Terms of Service.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[Non-text portions of this message have been removed]
-----------------------------------------------------
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/