473,545 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3812
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********@hou ston.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
6369
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
1234
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 control can display the scroll bar appears. If user clicks on the scroll bar arrow, the OnTimer message handler removes all items from list control...
2
4217
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; WIDTH: 800px; LINE-HEIGHT: 0px; HEIGHT: 17px" onscroll="javascript: document.getElementById('divPart2').scrollLeft = this.scrollLeft;"> scrolls the...
2
1319
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 changed and the form also scrolls out of control. How do I make the detatch those two types of controls so that only one gets the mouse scrolling event....
9
3329
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 vertical lists on :hover i.e. http://phoenity.com/newtedge/horizontal_nav/ But what I am looking for is a horizontal list that opens another...
3
61133
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 restrictions). Is there anyway of placing horizontal scrollbars on the select box so that the user can scroll the box to read the rest of the lines? I'm...
4
1689
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", "test");
9
6666
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 list: <http://css.maxdesign.com.au/index.htm>
4
2487
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 game that does not show up on my friends browser correctly, but shows up correctly in mine and on my sisters. My sister and he has the same screen size....
0
7475
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7918
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7436
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7766
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5981
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1897
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1022
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.