?
Solved

A ScrollBox without scrollbars

Posted on 1997-03-14
1
Medium Priority
?
2,227 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 200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month12 days, 9 hours left to enroll

777 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