Solved

A ScrollBox without scrollbars

Posted on 1997-03-14
1
2,223 Views
Last Modified: 2008-02-26
I want use a ScrollBox, put a large image in it, and manage the scrollBox with MY scrollbars, not the Horiz. and Vert. scrollbars which can be 'attached' with the scrollbox.
If i put the Visible propriety of the Horiz and vert. scrollbars to false, yes they disapear but i cannot more scroll the scrollbox.
What i want is :
Horizscrollbar.range:=x (x > scrollbox.width)
Horizscrollbar.visible:=false
Vertscrollbar.range:=y (y>scrollbox.height)
Vertscrollbar.visible:=false

The Horiz and vert. scrollbars are 'ENABLED' (ie i can change their   Horizscrollbar.position and Vertiscrollbar.position) but they are not visible on the screen.

Any idea ?

TIA

jm Verdi

0
Comment
Question by:jm verdi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
mheacock earned 100 total points
ID: 1334864
Why don't you use double buffering.  Add an empty TImage to your form.  Load your large image into a background bitmap (at run-time).  What you do now is copy a portion (clipping) of the background bitmap to the TImage canvas.  As you move your own scrollbars, you can copy a new portion of the background to the TImage canvas.  This will create the windowing effect I think you  are looking for.

Feel free to commment.  
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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…

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