Re: Easy components feature for Delphi
- From: Michael Baytalsky <mike@xxxxxxxxxxxxxxx>
- Date: Tue, 28 Nov 2006 17:44:53 +0200
Very good feature indeed. I was thinking of something like that
for a long time. This can now be done in VS.Net, btw (e.g.
for typed datasets).
To make this type of feature, you'd need to be able to compile
a component (unit) into some dll/bpl (at least temporarily) and
load that module. You will also need to reload it every time
you change that unit (or avoid using design-time features).
Then the next step would be to create a separate section in
component palette with all the components that you implicitly
or explicitly use + your local components. This will make it easier
to locate components as normally you only use a small portion
of all in current application. Allow to pre-select components you
intend to use when starting application. Avoid loading any libraries
not related to those selected components - improve startup time without
uninstalling packages (e.g. I never use IW components or ActiveX or
internet (rarely) or IB\ADO\BDE... this list could get really long
- why would I want to load packages. However, I don't want to
un-install them either).
Michael
William Egge wrote:
I like the ease of use of components, and at times I would like to have components "just" for a particular application. I don't want to create these components though because it is too time consuming and sometimes a big headache. So what I would like is the ability to create a component for an application but do so with very little setup overhead..
Here is a way I envision it would work:
I am building my app and decide I would like to have a non-visual component (not to exlude visual ones), so I create a new pas unit and code my new component. I would not have to go through a lengthly install, I would not have to create a package, and at best no install at all. I would simply be able to drop this component on a form and start using it.
I imagine this component could show up in some "local components" toolbar or something.
Also, thinking ahead, if it were this easy then 3rd party components would be as easy as adding the 3rd party unit to your uses clause. This would also solve the huge list of components problem.
-Bill
- References:
- Easy components feature for Delphi
- From: William Egge
- Easy components feature for Delphi
- Prev by Date: Re: Please make a new AutoVar Statement
- Next by Date: Re: Help with a Class, Which is better a TStringList or an arrayof strings
- Previous by thread: Re: Easy components feature for Delphi
- Next by thread: Re: Easy components feature for Delphi
- Index(es):
Relevant Pages
|
|