Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Creating Thumbnails using CBuilder3

Posted on 1999-06-26
Medium Priority
Last Modified: 2010-04-02
I'm using CBuilder3 and in the help section it talks about using TButton, TBitBtn, TSpeedButton within the ScrollBox Component. They don't show an example, Can a CBuilder3 expert show an example that could be used for creating thumbnails using atree directory, ScrollBox component, and one of the button components.  thanks
Question by:Right
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
1 Comment
LVL 10

Accepted Solution

viktornet earned 210 total points
ID: 1198553
well, you don't need a ScrollBoc in order to create a thumbnail..... you can simply use a TImage component and set its AutoSize property to false and its Stretch pro[erty to true.... now the only thing left for you to do is to set the width and height., you can take the ratio of the original width and height and adjust the thumbnail accordingly..

you can also use StretchBlt() if you'd like to stretch the image by yourself.. it's a WIN API just so you know....


Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

670 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