Solved

Scrolling an image in a Windows

Posted on 2004-09-09
5
150 Views
Last Modified: 2010-04-05
I want to show an image in a TForm and if the image is bigger than the window, I want to be able to scroll vertical and horizontal.
Any idea how it can be done?
0
Comment
Question by:rainbowsoftware
  • 3
  • 2
5 Comments
 
LVL 22

Expert Comment

by:Ferruccio Accalai
ID: 12016357
Use a TScrollBox and a TImage on it with Autosize property
0
 

Author Comment

by:rainbowsoftware
ID: 12016569
I have tried to:
Use a TScrollBox and a TImage on it with Autosize property
but it doesn't work.
Are there any other properties to be set?
0
 
LVL 22

Accepted Solution

by:
Ferruccio Accalai earned 125 total points
ID: 12016678
put a timage on a form
TImage with align alTop and autosize to true...

When you'll load an image bigger than the form scrollbars will appear...

If you need to use just a part of the form so use a TScrollBox, but if the form is the image ccontainer itself do as above
0
 

Author Comment

by:rainbowsoftware
ID: 12016903
Now it works, thanks a lot.
0
 
LVL 22

Expert Comment

by:Ferruccio Accalai
ID: 12016938
Glad to have helped you :)

F68 ;-)
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

706 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

19 Experts available now in Live!

Get 1:1 Help Now