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

Stop the toolbar scrolling?

Hi.

I've got a form with a TImage and a TToolbar on it.  There's a drop-down on the toolbar that has magnification factors in it (from 50%-150%).  The user can select these to increase/decrease the size of the TImage.  (Usual zoom in & out stuff.)

The problem I have is that when the image is BIG (bigger than the screen), the form gains a scrollbar.  This in itself is great as it means I don't have to code any scrolling of the image myself, but it does mean that if you scroll down, the toolbar goes up as well.

I need to just scroll the image, nothing more.

Any ideas?

Thanks,

John.
0
Jaymol
Asked:
Jaymol
1 Solution
 
CesarioCommented:
Hi Jaymol,

a work around:

1) Add a TScrollbox to your form
2) Set Tscrollbox.Align := alclient
3) Place the TImage to TScrollbox

ciao

Cesario

0
 
JaymolAuthor Commented:
Thanks Cesario.  That's exactly what I needed.

Ta,

John.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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