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
Solved

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

Posted on 2007-11-21
4
196 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

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…
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 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