Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2007-11-21
4
Medium Priority
?
221 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 1000 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 1000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

927 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