Delphi Source

Posted on 2006-05-19
Last Modified: 2008-02-01
Hi Can I get the source code for DBListView component

Question by:ibrobar
    LVL 28

    Expert Comment

    is it part of the delphi component set? if so, you will find it in the source directory. If not, then you will have to see if teh component comes with source. if it doesn't, then you wil have to contact the author to get the source.
    LVL 11

    Expert Comment

    Perhaps you wanted to say DBListBox and then you may look inside delphis sources.
    Or for a DBListView here's one with source:


    Author Comment


    thanks for your response but I checked these two sites before and they don't work for delphi4

    thanks and regards
    LVL 11

    Expert Comment

    You could have mentioned the Delphi 4 problem...
    You did not :(

    I guess you will need to use a comercial component that comes with sources... or try to modify the source of the components above to make them work in Delphi 4

    LVL 17

    Accepted Solution

    I grabbed the Delphi 3 version file and made the following changes to
    DBListView98.pas to make it work in Delphi 4

    line 94, added
    imglist; //needed for TChangeLink
    to the uses clause

    line 454 changed to
    function GetDragImages: TDragImageList; override;

    line 2431 changed to
    function TCustomDBListView.GetDragImages: TDragImageList;

    you may also get a "duplicate resources" error when you compile. if you do, you can just comment out line 88
    {$R *.DCR}
    //{$R *.DCR}

    attach a datasource, and then use the "columns" propertry to add fields (set fieldname in each column)

    hope that helps,

    Author Comment

    I tried these changes but it didn't work

    thanks anyway
    LVL 17

    Expert Comment

    ? it worked for me, what problems are you getting?

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    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…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video discusses moving either the default database or any database to a new volume.

    754 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