Solved

A ScrollBox without scrollbars

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

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

Title # Comments Views Activity
QRReport  TQrmemo vertical stretching 1 52
How to debug For loops? 3 56
Press three keys together and trigger a function 3 60
FMX and jaudiotracker playing memory stream 29 85
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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

840 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