473,320 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Horizontal scrol bar max value problem.

I'm using a horizontal scroll bar control to represent teh default values of
MIn 0 to Max 100. I assign the current value of the horizontal control to a
label control.Text string but when the horizontal scroll bar reaches the max
limit the value indicated is only 91? Changing the big step value to 1
solves the issue but I want to be able to take big steps without writing
side effect code to do so. Any suggestions?
Nov 20 '05 #1
2 3792
Hi Doug,

It's a common misconception that a scrollbar should take the values 0 to
100 when the width of the 'space' that it scrolls is 100. Programmers who do
this are responsible for all the times that you scroll to the end of a
document and find yourself looking at a single line and a page of blank space,
or a single character column on the left and the rest blank. Those who
additionally get their -/+1's wrong will give you a completely blank space to
look at. Most annoying!! :-(

So what am I talking about?

A horizontal scrollbar should be given the range that the <left hand side>
will take. Not the range of the entire space. This is so that when the user
scrolls as far as possible to the right, the scrollbar value <plus> the width
of the viewing area will give the maximum value at the <right hand side>.

So, I think I'm glad that your maximum value is 91. Because this means
that your view will fit what it's showing without leaving huge areas of white
space.

Or are you using the scrollbars for something different, I wonder? That
mention of Big Step has me puzzled. Can you tell us more ?

Regards,
Fergus

Nov 20 '05 #2
Hello,

"Doug Carter" <do********@houston.rr.com> schrieb:
I'm using a horizontal scroll bar control to represent
teh default values of MIn 0 to Max 100. I assign the
current value of the horizontal control to a label control.
Text string but when the horizontal scroll bar reaches
the max limit the value indicated is only 91? Changing
the big step value to 1 solves the issue but I want to
be able to take big steps without writing side effect
code to do so.


This is by design.

http://groups.google.de/groups?selm=...40cpmsftngxa08

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #3

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

Similar topics

3
by: Bernd Kuegle | last post by:
Hi! How is it possible to reduce the space between a pargraph and a horizontal line (top and bottom). It doesn´t look so good if there is the default space. Thanks Bernd
1
by: Steve | last post by:
I have application which displays dialog containing CListCtrl control. The OnTimer message handler updates values in this list control. In case if there are more items then visible area of list...
2
by: Eduard | last post by:
I have a ASP.Net datagrid wrap in the following div: <DIV id="divPart2" style="OVERFLOW: hidden">. Another div controls the horizontal scrolling: <DIV id="scroll1" style="OVERFLOW: scroll;...
2
by: MH-2004 | last post by:
Hi All, I have a MDI form application. In a child form I placed a bunch of NumericUpDown controls. The problem happens when I use the mouse scroll button, the value in the NumericUpdown has...
9
by: Verona Busch | last post by:
Hi everybody, I am very happy to find this group. I am searching for a solution to make a horizontal list menu with submenu on hover. I found a lot of examples for horizontal lists which open...
3
by: Taras_96 | last post by:
Hi everyone, I've got a select box with multiple="yes" with fixed width. Unfortunately the content that goes into the box is too wide (and I can't make the box any bigger due to layout...
4
by: dheerajsah | last post by:
hi all, I have created a DIV tag using DOM ..... Element div = DOM.createDiv(); and appended Label inside it. .... Element label = DOM.createLabel(); DOM.setAttribute(label, "value",...
9
by: patrick j | last post by:
Hi I've just discovered that IE 7 messes up horizontal lists. I've done a bit of searching the web but a solution has not sprung forth from this searching. Below is a url with a horizontal...
4
tpgames
by: tpgames | last post by:
I need a code that forces all people's firefox browsers to give them a horizontal scroll bar regardless of what their tool bars and other factors tell the browser to do. I have a crossword puzzle...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.