Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - HTA: allow mouse wheel scroll but hide scrollbars

Reply
 
Old 11-07-2008   #1 (permalink)
XP


 
 

HTA: allow mouse wheel scroll but hide scrollbars

I was thinking that there is a way to allow a user to scroll an HTA window
using their mouse wheel or the keyboard and still hide the scrollbars.

Is this possible? If so, what should my settings be? I can't crack it...

Thanks much in advance.

My System SpecsSystem Spec
Old 11-08-2008   #2 (permalink)
mr_unreliable


 
 

Re: HTA: allow mouse wheel scroll but hide scrollbars

XP wrote:
Quote:

> I was thinking that there is a way to allow a user to scroll an HTA window
> using their mouse wheel or the keyboard and still hide the scrollbars.
>
> Is this possible?
hi XP,

I think it may be possible with a little "trial-and-error",
(my usual muddle-through coding technique).

I see two parts, part one is detecting the mouse wheel event.
If you google (scroll html "mouse wheel"), you will find
several pages discussing this, here is one:

http://roshanbh.com.np/2008/08/move-...avascript.html

It's not exactly what you want, but is does explain how to
detect mouse wheel events.

For the second part, you want to do scrolling (without scroll
bars). I suggest using the "scrollIntoView" method.

http://msdn.microsoft.com/en-us/libr...30(VS.85).aspx

The "scrollIntoView" method only applies to certain tags, but
the number of those tags is over fifty, so you should be able
find one-or-two you can work with.

Finally, you will have to set up your page and write some script
to get the scrolling you want. For example, let's say you
decide to use paragraphs for your scrolling element. Then your
script will have to keep track of the id of the paragraph shown
at the top of the page. Then if a mouse wheel event is detected
you would use scrollIntoView to scroll (up or down) so the next
(or previous) paragraph will be shown at the top.

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but, no guarantee
the answers will be applicable to the questions)
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
No Wheel Scroll Vista hardware & devices
Scroll wheel on mouse doesnt scroll page Vista installation & setup
Microsoft Wireless Desktop 6000 V2 under Vista - some keys not working - mouse scroll wheel 1 direction only Vista hardware & devices
Microsoft Wireless Desktop 6000 V2 under Vista - some keys not working - mouse scroll wheel 1 direction only Vista General
Annoying Mouse Problem - Scroll Wheel Button Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46