Project with a LOT of images "TImages" on Form. Need better way!

Posted on 2005-04-19
Last Modified: 2010-04-04
Hello All;

  Our current project has become a BIG problem.

  The project is used for displaying Advertisers information.
The Information is Displayed via TImages of the Form.

  The Form (Only a single Form) Will have nearly 1,000 Images displayed.
Each Image will be linked to it's corrosponding page on the Advertisers web Page.
Sets of Images are held (Displayed) from TPageControl.TabSheets.

   The project right now have over 250+ TImages on it.
Memory Usuage when the .exe is run is hitting: 22,973kb Mem Usuage.

Is there a safer way of developing a Image project like this?
That will not be so HIGH of a Memory Hog?

We have thought about having Text information besides the TImages.
But that will not work for the type of project that it is.
As it is an Advertising program, so it will need to display the images
For the Viewers to see.

While writing this now, thinking that maybe some sort of an HTML page.
And just have the pages installed onto the End-Users computer into the
Program Directory. And Encrypt the HTML Files if they prefer to go this route.

Any idea's or better solution please advice.

Thanks All
Question by:Wayne Barron
    LVL 11

    Accepted Solution

    The obvious solution is to not load all images at once.
    TVirtualTreeView from Mike Lischke is the solution to that.
    LVL 12

    Expert Comment

    1) Convert Images to JPEG
    2) Compile them as resource (article:
    3) Use TResourceStream to extract the resource from the Exe file
    4) Load the image in TJpegImage (uses ...,jpeg; )
    5) Assign the Bitmap of the image to the TJpegImage to load the image itself
    LVL 11

    Expert Comment

    That is a silly idea. To show the Jpeg it has to be converted to a TBitmap (that is what Picture.Graphic.Bitmap is for).
    LVL 30

    Author Comment

    by:Wayne Barron

       I have "VirtualTreeview" Installed (The Latest Version)
    Could you please give me some assistance in what to do?

    This is what I need (this way you will know everything basically)

    Product Images (All images are either .jpg (or) .gif / If they all need to be .jpg let me know, I can convert the
                             .gif images over.)

    The Images are then linked to a website.
    In my case it is simply done through the OnClick


    Thanks for any assistance that you can provide.

    LVL 11

    Expert Comment

    Sorry, i do not understand much of TVirtualTreeView. There should be examples available.
    BTW Mike Lischke has support forums.
    LVL 30

    Author Comment

    by:Wayne Barron
    Thanks for the information, I am going to post a new question
    In hopes that someone can assist in an example of how to do what I
    Am needing to do.

    I also posted a question on the "Support Forum" on Mike's site.
    So will wait to see what type of replies on get on that one.

    Take Care and thanks
    LVL 13

    Expert Comment

    most likely you can just read through the forums and find the answer, or look at the amazing demos...

    don't expect it to be easy though, but once you get the hang out of it, is quite powerful
    LVL 30

    Author Comment

    by:Wayne Barron
    Hello BlackTigerX;

      Is there any more demo's then the ones that come with the component set?


    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    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…
    Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    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

    21 Experts available now in Live!

    Get 1:1 Help Now