Solved

A ScrollBox without scrollbars

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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.

762 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

21 Experts available now in Live!

Get 1:1 Help Now