Solved

Stop the toolbar scrolling?

Posted on 2001-06-22
2
202 Views
Last Modified: 2010-04-04
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
Comment
Question by:Jaymol
2 Comments
 
LVL 8

Accepted Solution

by:
Cesario earned 100 total points
Comment Utility
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
 
LVL 6

Author Comment

by:Jaymol
Comment Utility
Thanks Cesario.  That's exactly what I needed.

Ta,

John.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now