472,965 Members | 1,869 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,965 software developers and data experts.

Keeping up with a scrollable panel

Hi all,

In my project I have a control (described in an earlier post) which
basically consists of three "subcontrols": One big area where the vital
data is displayed (scrollable, since it will usually be larger than the
window containing the parent control), a time strip on top of it, and a
resource list on the left. Long story short - when someone scrolls the
scrollable data control, the time strip and resource lists are hooked to
keep up and update themselves.

I used to have the time strip and resource list as scrollable controls
as well, and then just scroll their position along when the main data
control was scrolled. The downside to this - while resizing, the
scrollbars would flash on and off constantly, even if I did a
SuspendLayout() / ResumeLayout() around the resize process.

So I decided to try out another way; The time strip is very simple
(basically just a few lines on the hour, half hour and 15/45 minute
marks, plus a text indicating the time on the hour marks) so I thought
it should be able to keep up - when the main control is scrolled, the
time strip is told what time it is scrolled to, then the control
repaints itself. This works;

However, if I scroll horizontally faster than.. well, painfully slow,
the time strip takes a break, and does not update until I slow down or
stop. The repainting of the main data control is a LOT more complex than
the time strip, so I would actually not think that there would be a
problem keeping up. However, as it is now, the approach with scrolling
another scrollable control in sync with the main one was a lot smoother.

I set all controls to be DoubleBuffer|UserPaint|AllPaintingInWmPaint, btw.

What can I do to ensure that the time strip keeps up? Should I somehow
detect that a new scroll position has been sent inside my paint routine,
so that it aborts the current paint and starts a new one?

Any insights on this would be highly appreciated!


Apr 4 '07 #1
0 1405

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: flamesrock | last post by:
First, I'm very new to gui programming, so please go lightly on me :) Ok, so far I've settled on wxPython, and what I'd like to do as a first leap is *convert* a text program into a gui program....
by: Suresh Kojhani | last post by:
Hi Dear any one know how can we create scrollable panel in asp.net..if any one know then tell me how can i create than one. Suresh Kumar Software Developer Infinilogic (Pvt.) LTD Karachi...
by: Geoff B via .NET 247 | last post by:
I have a form that displays images using a picturebox. Theseimages are usually too large to fit in the entire screen so iwould like to panel to be scrollable with the mouse. On my form I have 2...
by: objectref | last post by:
hi to all, i have a picture box in a scrollable panel control. I can drag and drop the picture box inside the panel to the correct position by taking the MousePosition point and evauatint the...
by: UJ | last post by:
I've got area of a screen that needs to be scrollable (it's a long list from a database) but only that section should be scrollable - not the whole page. How do I do this? A panel? TIA - Jeffrey.
by: Ethan S. | last post by:
Hi everyone, I'm working on a small little project of mine and got stuck trying to add my own usercontrol into a scrollable object. For example, when a download is initiated under Mozilla...
by: Les | last post by:
I was wondering if in Visual Basic.net if Microsoft has made it any easier to scroll within a form. In VB 6 to do that required 2 picture windows that would in effect simulate a scrollable...
by: alwayssmiling | last post by:
Hi, I want a scrollable picture box in my application. But picture box can't have auto scroll property on its own. So in order to get scroll for my picture box i placed it in a panel. And set the...
by: Nathan Sokalski | last post by:
I am looking to create a multi-column list that is scrollable, kind of like a ListBox control, only I need a way to align the columns of text that I will have (I would use spaces, but because the...
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.