Solved

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

Posted on 2007-11-21
4
206 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month3 days, 21 hours left to enroll

630 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