473,739 Members | 7,912 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Scroll wheel mystery

I have a form designed as a Continuous form which displays one record
per
line. Taking account of the header and footer and the size of the
screen, I
can display 30 records at a time. I can see other records by scrolling
up or
down with either the scroll bar on the right of the screen, or the up
and down
arrows which are above and below this scroll bar; or I can use the
scroll wheel
on the mouse.

If however, by filtering, fewer than 30 records need to be displayed the
mouse's scroll wheel behaves strangely. Now I know that there is no
need to
scroll when all records are visible but I have a client who madly uses
the scroll
wheel at all times. Furthermore, it is not always immediately obvious
that all
records are visible (e.g. when there are, say 29, on display).

The scroll bar (to the right) fills its whole space, indicating that all
records are
visible, and therefore cannot be moved. However it is possible to use
the
arrows to scroll down (losing some records form the top) and then scroll
upto
redisplay them all.

It is also possible to use the scroll wheel to scroll down (again losing
uppermost records) but when one tries to scroll back up again with the
wheel
the top record is never made visible. It is always just out of reach.
(By using
the arrow, it can be made available again)

Why does the scroll wheel have this strange behaviour? and is there any
way
round it? (that is without using the arrows above and below the scroll
bar)
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #1
3 3988
Unfortunately Access will scroll the form to positions that are
technically not valid for the Scrollbar itself. It's a real pain in the
ass and has been for years! The only solution would be to subclass each
and every form which in my opinion is not practical.
:-(

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Devonish" <no*****@nowher e.com> wrote in message
news:40******** *************@n ews.frii.net...
I have a form designed as a Continuous form which displays one record
per
line. Taking account of the header and footer and the size of the
screen, I
can display 30 records at a time. I can see other records by scrolling up or
down with either the scroll bar on the right of the screen, or the up
and down
arrows which are above and below this scroll bar; or I can use the
scroll wheel
on the mouse.

If however, by filtering, fewer than 30 records need to be displayed the mouse's scroll wheel behaves strangely. Now I know that there is no
need to
scroll when all records are visible but I have a client who madly uses
the scroll
wheel at all times. Furthermore, it is not always immediately obvious
that all
records are visible (e.g. when there are, say 29, on display).

The scroll bar (to the right) fills its whole space, indicating that all records are
visible, and therefore cannot be moved. However it is possible to use
the
arrows to scroll down (losing some records form the top) and then scroll upto
redisplay them all.

It is also possible to use the scroll wheel to scroll down (again losing uppermost records) but when one tries to scroll back up again with the
wheel
the top record is never made visible. It is always just out of reach.
(By using
the arrow, it can be made available again)

Why does the scroll wheel have this strange behaviour? and is there any way
round it? (that is without using the arrows above and below the scroll
bar)
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 12 '05 #2
Go to www.microsoft.com and search for the article... 278379 -
ACC2000: How to Detect and Prevent the Mouse Wheel from Scrolling
Through Records in a Form.

I use the code in the sample on most of my applications, works well.

Bob
"Stephen Lebans" <Fo************ *************** *************@l invalid.com> wrote in message news:<5o******* **************@ ursa-nb00s0.nbnet.nb .ca>...
Unfortunately Access will scroll the form to positions that are
technically not valid for the Scrollbar itself. It's a real pain in the
ass and has been for years! The only solution would be to subclass each
and every form which in my opinion is not practical.
:-(

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Devonish" <no*****@nowher e.com> wrote in message
news:40******** *************@n ews.frii.net...
I have a form designed as a Continuous form which displays one record
per
line. Taking account of the header and footer and the size of the
screen, I
can display 30 records at a time. I can see other records by

scrolling
up or
down with either the scroll bar on the right of the screen, or the up
and down
arrows which are above and below this scroll bar; or I can use the
scroll wheel
on the mouse.

If however, by filtering, fewer than 30 records need to be displayed

the
mouse's scroll wheel behaves strangely. Now I know that there is no
need to
scroll when all records are visible but I have a client who madly uses
the scroll
wheel at all times. Furthermore, it is not always immediately obvious
that all
records are visible (e.g. when there are, say 29, on display).

The scroll bar (to the right) fills its whole space, indicating that

all
records are
visible, and therefore cannot be moved. However it is possible to use
the
arrows to scroll down (losing some records form the top) and then

scroll
upto
redisplay them all.

It is also possible to use the scroll wheel to scroll down (again

losing
uppermost records) but when one tries to scroll back up again with the
wheel
the top record is never made visible. It is always just out of reach.
(By using
the arrow, it can be made available again)

Why does the scroll wheel have this strange behaviour? and is there

any
way
round it? (that is without using the arrows above and below the scroll
bar)
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 12 '05 #3
Bob the OP's issue has to do with how far Access will scroll a Form
versus the legal positions of the Scrollbar.

By the way, if you are really using the code from the KB article then
you must not be using an SubForms. A more flexible solution is here:
http://www.lebans.com/mousewheelonoff.htm
MouseWheelHook9 7.zip is an MDB demonstrating how to use a MouseHook to
turn off the MouseWheel. No more MouseWheel.DLL Hell! No DLL
registration required. The MouseHook DLL is a standard Windows DLL. Do
not try to Register it or set a Reference to it from within Access.
Just copy the included MouseHook.DLL into your Windows/System folder or
into the same folder as your application MDB. One instance handles all
Forms and SubForms so only call the functions once from a SINGLE Form.
Here is an A2K sample MDB including the DLL. MouseWheelHookA 2K.zip .
Please note there is no difference between the MouseHook.DLL included in
either the A97 or A2K ZIP file.

Here is sample code that can be placed behind CommandButton controls.
You could also place this code in the Load event of a single Form.
Remember you need to call these functions only ONE TIME. The MouseHook
will look after the MouseWheel messages for all forms that you have open
now or at any time during your current session. Remember to turn the
MouseWheel back on before you exit the current session!

Private Sub Command14_Click ()
' Turn the MouseWheel Off
Dim blRet As Boolean
blRet = MouseWheelOFF
End Sub
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Bob Bergman" <te*******@bell south.net> wrote in message
news:a6******** *************** ***@posting.goo gle.com...
Go to www.microsoft.com and search for the article... 278379 -
ACC2000: How to Detect and Prevent the Mouse Wheel from Scrolling
Through Records in a Form.

I use the code in the sample on most of my applications, works well.

Bob
"Stephen Lebans"

<Fo************ *************** *************@l invalid.com> wrote in
message news:<5o******* **************@ ursa-nb00s0.nbnet.nb .ca>...
Unfortunately Access will scroll the form to positions that are
technically not valid for the Scrollbar itself. It's a real pain in the ass and has been for years! The only solution would be to subclass each and every form which in my opinion is not practical.
:-(

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Devonish" <no*****@nowher e.com> wrote in message
news:40******** *************@n ews.frii.net...
I have a form designed as a Continuous form which displays one record per
line. Taking account of the header and footer and the size of the
screen, I
can display 30 records at a time. I can see other records by

scrolling
up or
down with either the scroll bar on the right of the screen, or the up and down
arrows which are above and below this scroll bar; or I can use the
scroll wheel
on the mouse.

If however, by filtering, fewer than 30 records need to be displayed
the
mouse's scroll wheel behaves strangely. Now I know that there is
no need to
scroll when all records are visible but I have a client who madly uses the scroll
wheel at all times. Furthermore, it is not always immediately obvious that all
records are visible (e.g. when there are, say 29, on display).

The scroll bar (to the right) fills its whole space, indicating that all
records are
visible, and therefore cannot be moved. However it is possible to
use the
arrows to scroll down (losing some records form the top) and then

scroll
upto
redisplay them all.

It is also possible to use the scroll wheel to scroll down (again

losing
uppermost records) but when one tries to scroll back up again with the wheel
the top record is never made visible. It is always just out of reach. (By using
the arrow, it can be made available again)

Why does the scroll wheel have this strange behaviour? and is there any
way
round it? (that is without using the arrows above and below the

scroll bar)
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 12 '05 #4

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

Similar topics

12
12738
by: Arlie Rahn | last post by:
I would like to ad a custom scroll bar control to my app that has a customizable and "flat" look to it (not the normal VB look). Does anyone have any ideas on where to find a good one?
6
3078
by: amirkarger | last post by:
I have a simple "quickbrowse" menu that does this: <form> <select name="quickbrowse" onchange="go(this)"> <option selected value="">go to a tool...</option> <option value="#tool1">Great tool #1</option> <option value="#tool2">Great tool #2</option> <option value="#tool3">Great tool #3</option> </select> </form>
3
431
by: Devonish | last post by:
I have a form designed as a Continuous form which displays one record per line. Taking account of the header and footer and the size of the screen, I can display 30 records at a time. I can see other records by scrolling up or down with either the scroll bar on the right of the screen, or the up and down arrows which are above and below this scroll bar; or I can use the scroll wheel
1
4042
by: Otie | last post by:
Can this be fixed? I have a combo box which is filled with lots of choices on a certain form. I click on the combo box and want to scroll down through the items using my mouse's scroll wheel. But instead of scrolling through the combo box, Access 2000 starts scrolling through the records, as if I was hitting PAGE DOWN. How can I get Access 2000 to use the scroll wheel to scroll the combo box rather than go to the next record(s). The...
2
4775
by: web1110 | last post by:
Hi y'all, Ok, still playing with my DataGrid ComboBox. I solved the scroll problem, but now I discovered this: If I am in the ComboBox and rotate the scroll wheel on the mouse, I get the exception: The ListManager's position must be equal to rowNum.
1
7179
by: Ima Loozer | last post by:
On one of my forms I have a text box sized and shaped to display multiple lines. The max content of the field is such that the text box may display less than all of the data in the field. Therefore I have the vertical scroll bar enabled for the text box object. When a user is working with this form and that text box has focus, I would like the wheel mouse to scroll the content of that field rather than scroll through the records on the...
14
13814
by: effendi | last post by:
Is it possible for me to disable the wheel scroll in a mouse when user click on a drop-down list? Thanks
1
3209
by: kallol | last post by:
I have a simple HTML page where I have a form with in a <div style="height: 600px; width: 100%; overflow: auto;">. The mentioned div styles are mandatory to get the expected behavior of the div. Now, in Firefox, the page appears properly as expected. I can scroll down and up the div part by dragging the scroll bar by mouse and I can scroll down and up the div part by rolling up and down the mouse wheel as well. But I am facing the problem...
2
8591
by: =?Utf-8?B?TWFyaw==?= | last post by:
Does anyone know of a way to disable the mouse scroll wheel when a control such as a combobox or listbox has focus? I ask this, because I have an extremely large data entry form with vertical scrollbars. I have found that when a user scrolls the wheel in an attempt to scroll the form down, a combobox or listbox will scroll instead (if it has focus) thus changing the user's original selection. Thanks for any help you can provide! Mark
0
8969
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8792
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9337
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9209
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8215
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6754
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4570
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.