Solved

A ScrollBox without scrollbars

Posted on 1997-03-14
1
2,225 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

688 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