Forum Moderators: open

Message Too Old, No Replies

Disable Horizontal Scroll in Current Window

Is this possible?

         

IanTurner

11:05 am on Mar 21, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Is it possible to disable the horizontal scroll bar in the current browser window? and if so how?

cfel2000

11:06 am on Mar 21, 2002 (gmt 0)

10+ Year Member



If you are using frames you can use the scrolling=no command to switch of the scollbars.

IanTurner

11:11 am on Mar 21, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Frames are out on this one.

cfel2000

11:13 am on Mar 21, 2002 (gmt 0)

10+ Year Member



There might be a piece of JavaScript but I'm afriad I've never come across it. Sticky me if you find out thou. It could come in useful. In the meantime I'll hunt around for you.

BlobFisk

11:43 am on Mar 21, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not sure if this is the answer you are looking for, but if you limit your content width to c. 775px then you should not get horizontal scrolling.

As for disabling it, I don't think it's possible without frames (there may be JavaScript, but like cfel2000 I've never seen it).

cfel2000

11:48 am on Mar 21, 2002 (gmt 0)

10+ Year Member



Does this help

-----------------

Ram Munjuluri wrote:
>
> In article <71ddg0$29g$1@nw003t.infi.net>, weblinks@freyaventures.com
> says...
> > Look at the thread titled "Scroll size or control buttons" This shows how
> > to access some scrolling functions via keyboard or a VB control button. Not
> > sure what an Intellimouse is but you can apply the routine to any VB IO
> > function.
> >
> > - Mark
>
> I guess, I have to rephrase the question. I want to make the scrollbar
> invisible but make the contents on the window "scrollable".... I have
> pointers to scroll the window using the Keypresses. So, the next thing
> would be to make the scroll bar go away ?
>
> Any suggestions please ,
>
> -Ram
> ram@ivex3d.com

The function used to make scollbar invisible is depending on the web
page
with or without frames. Here is the code:

'no frame on the web page
WebBrowser.Document.body.Scroll = "no"

'with frame
WebBrowser.Document.All.Tags("FRAME").Item(i).scrolling = "no"

Also the code to scroll the window:

'no frame
Call WebBrowser.Document.frames.window.scrollto(xPosition,
yPosition)

'with frame
Call WebBrowser.Document.frames(i).window.scrollto(xPosition,
yPosition)

You can get the number of frames in the wab page:

nNumFrames = WebBrowser.Document.frames().length

Hope this will help.

-Huimin Fu
Huimin.Fu@DyatonOH.NCR.COM