Solved

Scrolling an image in a Windows

Posted on 2004-09-09
5
157 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
[X]
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
  • 3
  • 2
5 Comments
 
LVL 23

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 23

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 23

Expert Comment

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

F68 ;-)
0

Featured Post

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

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…
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…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month10 days, 3 hours left to enroll

624 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