How do I change a component?

Posted on 2004-11-24
Last Modified: 2010-04-05

I have bought a component with source that I want to modify in some simple ways.

I am using Delphi 7.

Can someone show me how to edit the component and run it in the IDE.

As a simple example, if you can add a msgbox ('Hello world...!') to the paint or create event of the component and then walk me through running it in the iDE, that's all I want - I can take care of the actual coding myself.

I am an experienced programmer and I have created a component set when using Delphi 2 - 10 years ago.

I don't want to relearn the whole topic - just to be able to make some simple changes and see them.



Question by:Voodooman
    LVL 13

    Accepted Solution

    if you have the code, you have the units (.pas) files...

    when you install a component you have to put it in a package, to modify it you can simply open the .pas files and add the code you want, or you can open the package where you installed that package, and then from there you can open the .pas files and make the changes, recompile the package and you are ready to go
    LVL 5

    Author Comment


    Sorry for not replying sooner but you know - work spoils the fun...

    I will take a look at the weekend.


    LVL 5

    Author Comment

    Hi Black TigerX


    And so simple - much simpler than I remember!

    Thank you very much, I have been reading it up and looking on the internet and getting no-where!!!!

    I will give you the point and Merry Xmas (if you're a Christian!).

    If not - I wish you all the best.


    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    Join & Write a Comment

    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…
    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…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    728 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

    22 Experts available now in Live!

    Get 1:1 Help Now