Solved

Scrolling an image in a Windows

Posted on 2004-09-09
5
152 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

837 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