Solved

Delphi 7 :: Re-install a single Delphi 7 component after modified

Posted on 2007-11-21
4
185 Views
Last Modified: 2013-11-23
Dear Experts,

If one has modified a Delphi 7 component's source and would like to update this component on the pallette by re-installing, how should one go about doing this?

The component I want to reinstall is the TDBGrid.

Please advise.
0
Comment
Question by:Marius0188
  • 2
4 Comments
 
LVL 19

Expert Comment

by:MerijnB
ID: 20327314
what do you mean "update this component on the pallette"

Reinstalling this single component is not that easy I think. Maybe we can achieve what you want another way.
0
 

Author Comment

by:Marius0188
ID: 20327406
Ok, basically.
Let say I have added a new event or property for TDBGrid.

Now when dropping this component the changes does not appear.
Need to either uninstall and re-install or what else.....?

Give me some advise, please. :)
0
 
LVL 19

Accepted Solution

by:
MerijnB earned 250 total points
ID: 20327483
actually,

my advice is to not make changes to the VCL.

If you need to, inherit a new object from TCustomDBGrid.
0
 
LVL 21

Assisted Solution

by:developmentguru
developmentguru earned 250 total points
ID: 20327636
 MerijnB said it correctly.  Do not make changes to the VCL.  While the TDBGrid is a very useful component, most of us have had to make changes to it.  Generally the best way to do that is to copy the source for the base part you need to change to a new source file and create your own component based on it.  Then you can feel free to make all the changes you need.

  In order to do that for the DBGrid you would need to copy the DBGrids Unit.  You would need to remove the source for any classes you do not intend to change and then make your changes including the name of the class.  This will give you your own set of source that will not change in updated VCL versions.

  Normally yoou would create a package to house your components.  Right click on the package in the project manager and select INSTALL to update it in the IDE.

Let me know if you need more.

0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now