• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 165
  • Last Modified:

Scrolling an image in a Windows

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
rainbowsoftware
Asked:
rainbowsoftware
  • 3
  • 2
1 Solution
 
Ferruccio AccalaiSenior developer, analyst and customer assistance Commented:
Use a TScrollBox and a TImage on it with Autosize property
0
 
rainbowsoftwareAuthor Commented:
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
 
Ferruccio AccalaiSenior developer, analyst and customer assistance Commented:
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
 
rainbowsoftwareAuthor Commented:
Now it works, thanks a lot.
0
 
Ferruccio AccalaiSenior developer, analyst and customer assistance Commented:
Glad to have helped you :)

F68 ;-)
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now