Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-04

Packages / Visual Form Inheritance / Components Connection

8 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Leonardo M. Ramé
to Osvaldo Filho

If you are referring to .bpl packages, the answer is No, because FPC/Lazarus doesn't use packages.

But if you create your datamodule inside a .dll or .so library, it's perfectly possible.

Leonardo M. Ram?
Griensu S.A. - Medical IT C?rdoba
Tel.: 0351 - 4247979

Osvaldo Filho escribi?:

Show quoted text 13 lines
Hi, is it possible i have packages and use your units for visual form inheritance ? Is it possible i connect a dataset from a form of my project with an database in a datamodule in a package? Thanks ------------------------------------------------------------------------ _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Bogusław Brandys
to Leonardo M. Ramé

Leonardo M. Ram? pisze:

Show quoted text 10 lines
If you are referring to .bpl packages, the answer is No, because FPC/Lazarus doesn't use packages. But if you create your datamodule inside a .dll or .so library, it's perfectly possible. Leonardo M. Ram? Griensu S.A. - Medical IT C?rdoba Tel.: 0351 - 4247979

Are you sure ? Any problems ?

Regards
Boguslaw

Reply by email

Osvaldo Filho
to Leonardo M. Ramé: If you are referring to .bpl packages, the answer is No, because FPC/Lazarus doesn't use…
"Leonardo M. Ram?" wrote
If you are referring to .bpl packages, the answer is No, because FPC/Lazarus doesn't use packages.
No.
I'm talk about "Lazarus Packages", ".lpk";
But if you create your datamodule inside a .dll or .so library, it's perfectly possible.

It is not the case.

One project (new application project)
One package, .lpk, with form models (for visual form inheritance) and one conection datamodule with a database component.

is it possible access the database component with others components as dataset?
is it possible use of VFI ?

Thanks for your reply.
Thanks all.

Show quoted text 25 lines
Leonardo M. Ram? Griensu S.A. - Medical IT C?rdoba Tel.: 0351 - 4247979 Osvaldo Filho escribi?: > Hi, is it possible i have packages and use your units for visual form > inheritance ? > Is it possible i connect a dataset from a form of my project with an > database in a datamodule in a package? > > Thanks > ------------------------------------------------------------------------ > > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus > _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gärtner
to Osvaldo Filho

Zitat von Osvaldo Filho :

Show quoted text 19 lines
Em Ter, 2009-04-14 ??s 10:25 -0300, "Leonardo M. Ram??" escreveu: > If you are referring to .bpl packages, the answer is No, because > FPC/Lazarus doesn't use packages. No. I'm talk about "Lazarus Packages", ".lpk"; > But if you create your datamodule inside a .dll or .so library, it's > perfectly possible. It is not the case. One project (new application project) One package, .lpk, with form models (for visual form inheritance) and one conection datamodule with a database component. is it possible access the database component with others components as dataset? is it possible use of VFI ?

At the moment components on other forms/datamodules can only be used in the designer, if the form/datamodule is listed in the CreateForm statement of the lpr file.
Note: A CreateForm statement can also create hidden forms/datamodules.

It does not matter if any of those units is in an lpk or not.

Eventually the IDE will search components on all available forms/datamodules.

Mattias

Reply by email

Osvaldo Filho
to Mattias Gärtner

But how can i include forms/datamodules from a lpk package in CreateForm statement of a project?

And, how can a use Visual Form Inheritance in a project where the ansestors (my models) is on .lpk package?

Thanks.

Mattias G?rtner wrote 38 lines
Zitat von Osvaldo Filho : > Em Ter, 2009-04-14 ? s 10:25 -0300, "Leonardo M. Ram??" escreveu: > > If you are referring to .bpl packages, the answer is No, because > > FPC/Lazarus doesn't use packages. > > No. > I'm talk about "Lazarus Packages", ".lpk"; > > > But if you create your datamodule inside a .dll or .so library, it's > > perfectly possible. > > It is not the case. > > One project (new application project) > One package, .lpk, with form models (for visual form inheritance) and > one conection datamodule with a database component. > > is it possible access the database component with others components as > dataset? > is it possible use of VFI ? At the moment components on other forms/datamodules can only be used in the designer, if the form/datamodule is listed in the CreateForm statement of the lpr file. Note: A CreateForm statement can also create hidden forms/datamodules. It does not matter if any of those units is in an lpk or not. Eventually the IDE will search components on all available forms/datamodules. Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Marco van de Voort
to Osvaldo Filho
Osvaldo Filho wrote 5 lines
But how can i include forms/datamodules from a lpk package in CreateForm statement of a project? And, how can a use Visual Form Inheritance in a project where the ansestors (my models) is on .lpk package?

The .lpk concept is static, not dynamic like Delphi.

This means the designtime code is hard linked into the lazarus binary, and the runtime packages are hard linked into the final binaries. No DLLs, no .BPLs.

Reply by email

Osvaldo Filho
to Marco van de Voort

What????
No. This is not my problems!

I can use my "models" (forms ancestors / VFI); My problems is with IDE Menu: No <IDE:menu:new:"inherited component"> options for my forms on my package.

And i don't see how can i put forms/datamodules from my package in autoCreate statement of my project!

Marco van de Voort wrote 17 lines
On Tue, Apr 14, 2009 at 02:19:16PM -0300, Osvaldo Filho wrote: > But how can i include forms/datamodules from a lpk package in CreateForm > statement of a project? > > And, how can a use Visual Form Inheritance in a project where the > ansestors (my models) is on .lpk package? The .lpk concept is static, not dynamic like Delphi. This means the designtime code is hard linked into the lazarus binary, and the runtime packages are hard linked into the final binaries. No DLLs, no .BPLs. _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email