Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Picture Scrolling

Status
Not open for further replies.

PaidtheUmpire

Programmer
Jan 4, 2004
105
0
0
AU
Is there a way to get a Picture field (or something similar) to have a scroll-bar which allows a user to view the entire picture.

I have a picture which can't fit into the area given to it, but i can't "stretch shrink" it, as it needs to be full size. Is there a way to be able to scroll from top to bottom?

Delphi, Delphi, Delphi. Oi! Oi! Oi!
 
Look at the example in the delphi directory:

C:\Program Files\Borland\Delphi 7\Help\Examples\Scrollba

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-"There is always another way to solve it, but I prefer my way.
 
A Direct aproach(may be the same as Nordlund is telling, but I dont have Delphi now and can't see what the example is) is to :
create a TScrollPanel( not 100% sure about the name)

put inside a Image1:TImage with
In Object inspector
Code:
Image1.Top:=0;
Image1.left:=0;
Image1.AutoSize:=true;
Aslo Set the Scrollbars Property of the ScrollPanel to ssBoth,wait it was
Code:
ScrollPanel1.VerticalScrollbar.Visible:=true;
ScrollPanel1.HorizontalScrollbar.Visible:=true;
and horisontal also to be visible and you should have something what might fit your need.


Regards,
Spent
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top