Solved

Stop the toolbar scrolling?

Posted on 2001-06-22
2
206 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
ID: 6217396
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
ID: 6217421
Thanks Cesario.  That's exactly what I needed.

Ta,

John.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

730 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